Hacker News new | ask | show | jobs
by Bellyache5 1508 days ago
The wrinkle comes in when you need different versions of Python for different projects. e.g. Python 3.6 for one, 3.10 for another.
1 comments

So what’s the actual problem? You can install multiple python versions and use the correct one when creating the venv.
pyenv helps you install and manage those multiple python versions.
I don't use pyenv and have multiple python versions installed (and use them via venv per project). If you don't need to designate one as a global/system Python (which I don't), is there any reason to use pyenv?
If your process to install a specific Python version for a project, independent of system Python, is as fast and simple as `pyenv install 3.9.7`; and if you don't work in a team where having `.python-version` file in the project will download, install and set the exact Python version required: you don't need pyenv.