home blog portfolio Ian Fisher

pyenv cheatsheet

# see available versions
$ pyenv versions

# install a new version
$ pyenv install 3.x.y

# switch global version
$ pyenv global 3.x.y

# set version permanently for local directory
# (you will have to recreate your virtual environment if you do this)
$ pyenv local 3.x.y

See also