snippetbashTip
pyenv — Switch between multiple versions of Python easily. See also: `asdf`. More information: <https://mann
Viewed 0 times
commandbetweenmultiplepythonversionspyenvcliswitch
Problem
How to use the
pyenv command: Switch between multiple versions of Python easily. See also: asdf. More information: <https://manned.org/pyenv>.Solution
pyenv — Switch between multiple versions of Python easily. See also: asdf. More information: <https://manned.org/pyenv>.List all available commands:
pyenv commandsList all Python versions under the
${PYENV_ROOT}/versions directory:pyenv versionsList all Python versions that can be installed from upstream:
pyenv install --listInstall a Python version under the
${PYENV_ROOT}/versions directory:pyenv install {{2.7.10}}Uninstall a Python version under the
${PYENV_ROOT}/versions directory: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}}Code Snippets
List all available commands
pyenv commandsList all Python versions under the `${PYENV_ROOT}/versions` directory
pyenv versionsList all Python versions that can be installed from upstream
pyenv install --listInstall a Python version under the `${PYENV_ROOT}/versions` directory
pyenv install {{2.7.10}}Uninstall a Python version under the `${PYENV_ROOT}/versions` directory
pyenv uninstall {{2.7.10}}Context
tldr-pages: common/pyenv
Revisions (0)
No revisions yet.