1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 17:02:09 +02:00
tldr/pages/common/pyenv.md
Lucas Gabriel Schneider a5fe31bc47
multiple pages: format technical tokens (#5119)
Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com>
Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
2021-01-31 12:05:18 -05:00

28 lines
673 B
Markdown

# 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`
- 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}}`