News for hackers. Stuff that matters.
Re:Pyenv – lets you easily switch between multiple versions ... by lgxz on Monday March 25, 2024 @06:54AM (#39814663)
I think the only problem of pyenv is that you can't upgrade an old virtualenv to a newer Python version.
Re:Pyenv – lets you easily switch between multiple versions ... by Hamuko on Monday March 25, 2024 @07:01AM (#39814714)
Isn't that more of a limitation with virtualenv? I've been using virtualfish as my venv manager in the fish shell and it has a `vf upgrade` command for upgrading virtualenvs to newer versions, either by updating in-place or rebuilding the entire virtualenv. So far has worked nicely with my pyenv Python installs.
Re:Pyenv – lets you easily switch between multiple versions ... by rcarmo on Monday March 25, 2024 @07:07AM (#39814751)
Yeah. I had a shell snippet someplace that was essentially pip freeze | remove virtualenv | make virtualenv | pip install. It's not that hard.
Re:Pyenv – lets you easily switch between multiple versions ... by rewgs on Monday March 25, 2024 @01:37PM (#39819169)
That has nothing to do with pyenv.

Also, this really isn't a problem -- just blast out of the old venv, make a new one with a new version, and you're good.