pyenv
Switch between multiple versions of Python easily. More information: https://github.com/pyenv/pyenv.
-
List all available commands:
pyenv commands -
List all Python versions under the
${PYENV_ROOT}/versionsdirectory:
pyenv versions -
List all Python versions that can be installed from upstream:
pyenv install --list -
Install a Python version under the
${PYENV_ROOT}/versionsdirectory:
pyenv install {{2.7.10}} -
Uninstall a Python version under the
${PYENV_ROOT}/versionsdirectory:
pyenv uninstall {{2.7.10}} -
Set Python version to be used globally in the current machine:
pyenv global {{2.7.10}} -
Set Python version to be used in the current directory and all directories below it:
pyenv local {{2.7.10}}
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.