mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-09 23:15:45 +02:00
pyenv: add page (#995)
This commit is contained in:
parent
4a3cb444e4
commit
7da70b4f31
1 changed files with 27 additions and 0 deletions
27
pages/common/pyenv.md
Normal file
27
pages/common/pyenv.md
Normal file
|
@ -0,0 +1,27 @@
|
|||
# pyenv
|
||||
|
||||
> Switch between multiple versions of Python easily.
|
||||
|
||||
- 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}}`
|
Loading…
Add table
Reference in a new issue