tldr/pages/common/pyenv.md
Muhammad Falak R Wani 86c27744b0
pyenv: add example to list all installable versions (#8327)
* pyenv: add example to list all installable versions
* pyenv: add italian translation

Co-authored-by: marchersimon <50295997+marchersimon@users.noreply.github.com>
Suggested-by: Marco Bonelli <mebeim@users.noreply.github.com>
Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
2022-08-10 16:27:12 +05:30

762 B

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}/versions directory:

pyenv versions

  • List all Python versions that can be installed from upstream:

pyenv install --list

  • Install 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}}