Skip to content

Instantly share code, notes, and snippets.

@rreece
Created August 4, 2018 20:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rreece/344722e16a2e7f5c0f88dbedb9a8aaf3 to your computer and use it in GitHub Desktop.
Save rreece/344722e16a2e7f5c0f88dbedb9a8aaf3 to your computer and use it in GitHub Desktop.
Installing python3 on Mac OSX
# Installing python3 on Mac OSX
brew install python3
# Error: An unexpected error occurred during the `brew link` step
# The formula built, but is not symlinked into /usr/local
# Permission denied @ dir_s_mkdir - /usr/local/Frameworks
# Error: Permission denied @ dir_s_mkdir - /usr/local/Frameworks
#
# See: https://github.com/Homebrew/homebrew-core/issues/19286
sudo mkdir /usr/local/Frameworks
sudo chown $(whoami):admin /usr/local/Frameworks
brew install python3
# Warning: python 3.7.0 is already installed, it's just not linked
# You can use `brew link python` to link this version.
brew link python3
@rreece
Copy link
Author

rreece commented Aug 4, 2018

After this, I still didn't have pip3 in my path until I did:

ln -s /usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/bin/pip3 /usr/local/bin/pip3

@rreece
Copy link
Author

rreece commented Aug 4, 2018

pip3 install --upgrade pip
pip3 install virtualenv virtualenvwrapper

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment