Last active
February 19, 2020 14:24
-
-
Save alfasin/bc88d4eb0217f13cbc7ccef53e8eadb3 to your computer and use it in GitHub Desktop.
Installing Python3 On OSX
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# shamelessly copied from Jesse Myers (https://github.com/jessemyers) | |
# Install pyenv from homebrew: | |
brew install pyenv | |
pyenv install 3.7.4 | |
pyenv global 3.7.4 | |
# Install virtualenvwrapper globally: | |
$(pyenv which pip) install virtualenv virtualenvwrapper | |
# Update your ~/.bash_profile to include: | |
export VIRTUALENVWRAPPER_PYTHON=$(pyenv which python) | |
export VIRTUALENVWRAPPER_VIRTUALENV=$(pyenv which virtualenv) | |
source $(pyenv which virtualenvwrapper.sh) | |
export PIP_REQUIRE_VIRTUALENV=true | |
# And | |
source ~/.bash_profile | |
# At this point, Python3 will be used in any new virtualenv; if you want to use Python3 directly, you can run pyenv which python3 and/or softlink this location into your $PATH. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment