Skip to content

Instantly share code, notes, and snippets.

@jkeam
Created November 25, 2017 06:30
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 jkeam/14afac3612156e0a28a026f36dd29466 to your computer and use it in GitHub Desktop.
Save jkeam/14afac3612156e0a28a026f36dd29466 to your computer and use it in GitHub Desktop.
Installing Python
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