Python
pyenv Commands
Install and manage multiple Python versions on your system. Switch between versions per-project or globally.
9 commands
Pro Tips
Use 'pyenv local 3.11.0' to pin Python version for a project (.python-version file).
Run 'pyenv rehash' after installing new packages with executables.
Install pyenv-virtualenv plugin for integrated virtualenv management.
Common Mistakes
pyenv compiles Python from source - ensure build dependencies are installed.
On macOS, install Xcode Command Line Tools before using pyenv.