|
|
|
|
|
by nyrikki
550 days ago
|
|
Venvs solve that problem, they don't cause it. You activate the venv per project to get out of the global namespace problem. As python x.nn versions are major with the nn part, it is like trying to mix c11 with c19.... things will break if you don't respect that. |
|
There are plenty of situations where the Python interpreter version matters. As a non-exhaustive list, you have libraries that compile code, non-Python languages that link to cpython, build scripts that do different things depending on wheel/setup/other-bundled-stuff, Python code that uses removed compat shims like importlib-metadata...
If you haven't run into one of those situations yet, congratulations. I've been through this already, and making a reproducible environment does require first installing a pinned version of the Python interpreter and THEN setting up a venv using that particular interpreter.