Simple Python version management
open sourceMITself-hostablefree
pyenv lets you switch between multiple Python versions per user or per project. Forked from rbenv and ruby-build, it is written in shell and works through shims on PATH, and it installs many distributions including CPython and PyPy.
Ways to install
Package managers
Problems it solves
- I need Python 3.9 for one project and 3.12 for another
- stop messing with the system Python on my Mac
- install an older Python version that Homebrew no longer has
- set a per-project Python version that switches automatically
- test my library against several Python versions locally
- install PyPy alongside CPython
- the python command points at the wrong version
- build Python from source with the right flags without doing it by hand
Features
- global and per-project versions
- python-build installer
- multiple distributions
- env var override
- shims
Capabilities
| Has a command line tool | plan not known |
|---|
Alternatives
The same job
These do what pyenv does.
