-
-
Save techkuz/335cb418d68323d031ba53d7ccc5cdb9 to your computer and use it in GitHub Desktop.
pyenv cheat sheet
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
# 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