News for hackers. Stuff that matters.
Re:Managing Python Versions with Pyenv by kh1 on Tuesday May 10, 2022 @08:55AM (#31326508)
I always have different python versions on system level (`$ sudo apt install python3.7 python3.8 python3.9 python3.10`) and use virtualenv to manage versions for each project (`$ virtualenv env -p python3.9`), and that has served me well for years. Could someone tell me why pyenv is superior?
Re:Managing Python Versions with Pyenv by mpicker0 on Tuesday May 10, 2022 @09:23AM (#31326806)
pyenv can compile Python versions that might not be available with "apt install" yet. And you can have multiple minor versions available (3.7.8 and 3.7.9, for instance), if you ever need it.
Re:Managing Python Versions with Pyenv by zach_garwood on Tuesday May 10, 2022 @09:24AM (#31326816)
I don't know if it's "superior", but it helps you manage / install / uninstall / set system Python versions, as well as virtualenv features. That's it.
Re:Managing Python Versions with Pyenv by kh1 on Tuesday May 10, 2022 @09:44AM (#31327034)
Thanks. IMO changing system python versions might confuse some people.

I often have to debug not-so-tech-savvy colleagues' python scripts/environments.

If we used pyenv, I could picture me telling them that they forgot to switch system python environment.

Re:Managing Python Versions with Pyenv by 0x008 on Wednesday May 11, 2022 @06:16AM (#31337877)
If you forget to activate the venv you cannot accidently install packages in your system python.