pyenv
Links
Commands
- Python version options:
- list available Python versions:
pyenv install -l
- install new Python version:
pyenv install <version>
- uninstall Python version:
pyenv uninstall <version>
- list installed Python versions:
pyenv versions
- list available Python versions:
- update with brew:
brew upgrade pyenv
- set python version for current directory (and its subdirectories):
pyenv local <version>
Set Python Version for new Project
- list installed Python versions:
pyenv versions
- do we want to use one of the versions or install an other?
- list available Python versions:
pyenv install -l
- install new Python version:
pyenv install <version>
- set python version for current directory (and its subdirectories):
pyenv local <version>
Mac Install
- problems during Python install like
ModuleNotFoundError: No module named '_lzma'
can be fixed withbrew install xz
Remove failed Builds (Mac)
- change to
/var/folders
- search for
python-build
:find . -name "*python-build*" | less
- remove folders
Last modified August 4, 2023: Update pyenv.md (3eb2d97)