python pyenv¶
Commands¶
| Action | Command | Comments |
|---|---|---|
| List versions | pyenv versions | |
| Install pytrhon | pyenv install 3 | |
| Set global version | pyenv global 3 | |
| Set local version | pyenv local 3 | |
| Set version for current shell | pyenv shell 3 | Unset: pyenv shell --unset |
| Rehash | pyenv rehash | See also: rehash |
Set python version¶
- in-a-folder :
echo "3.9.5" > .python-version