python environments
- Use
pyenv
to switch between Python versions. - Use
venv
for creating of virtual environments.
pyenv versions
pyenv version
python --version
# install a version
pyenv install 3.10
# select just for current shell session
pyenv shell <version>
# automatically select whenever you are in the current directory (or its subdirectories)
pyenv local <version>
# select globally for your user account
pyenv global <version>
# uninstall
pyenv uninstall <versions>
17. Sep 2024