LinuxCommandLibrary

pyenv

pyenv

TLDR

List all available commands

$ pyenv commands
copy


List all Python versions under the ${PYENV_ROOT}/versions directory
$ pyenv versions
copy


List all Python versions that can be installed from upstream
$ pyenv install --list
copy


Install a Python version under the ${PYENV_ROOT}/versions directory
$ pyenv install [2.7.10]
copy


Uninstall a Python version under the ${PYENV_ROOT}/versions directory
$ pyenv uninstall [2.7.10]
copy


Set Python version to be used globally in the current machine
$ pyenv global [2.7.10]
copy


Set Python version to be used in the current directory and all directories below it
$ pyenv local [2.7.10]
copy

Copied to clipboard