Created
November 28, 2016 09:31
-
-
Save xnoder/a4aa1532c29c2e90a60a93fa9da8075f to your computer and use it in GitHub Desktop.
pyenv cheat sheet
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
# List all available versions | |
$ pyenv versions | |
system | |
# Install Python3 on machine as full binary | |
$ pyenv install 3.5.2 | |
# Create virtualenv out of 3.5.2 | |
$ pyenv virtualenv 3.5.2 developer | |
$ pyenv activate developer | |
$ which python | |
$ python -V | |
# Install Python 2 on a machine as a full binary | |
$ pyenv install 2.7.12 | |
# Create a Python 3 virtualenv | |
$ pyenv virtualenv 2.7.12 systems | |
$ pyenv activate developer | |
$ which python | |
$ python -V |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment