Created
November 25, 2017 06:30
-
-
Save jkeam/14afac3612156e0a28a026f36dd29466 to your computer and use it in GitHub Desktop.
Installing Python
This file contains hidden or 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
Install These Tools: | |
https://github.com/pyenv/pyenv | |
https://github.com/pyenv/pyenv-virtualenv | |
Then in .zshrc add: | |
eval "$(pyenv init -)" | |
eval "$(pyenv virtualenv-init -)" | |
Installing Pythong | |
CFLAGS="-I$(brew --prefix openssl)/include" \ | |
LDFLAGS="-L$(brew --prefix openssl)/lib" \ | |
pyenv install -v 3.6.3 | |
Create a VirtualEnv | |
pyenv virtualenv 3.6.3 my-virtual-env-3.6.3 | |
Create a rc file | |
echo 'my-virtual-env-3.6.3' > .python-version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment