Skip to content

Instantly share code, notes, and snippets.

@techkuz
Forked from xnoder/pyenv_command.sh
Created September 24, 2018 07:39
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 techkuz/335cb418d68323d031ba53d7ccc5cdb9 to your computer and use it in GitHub Desktop.
Save techkuz/335cb418d68323d031ba53d7ccc5cdb9 to your computer and use it in GitHub Desktop.
pyenv cheat sheet
# 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