Hacker News new | ask | show | jobs
by lgxz 817 days ago
I think the only problem of pyenv is that you can't upgrade an old virtualenv to a newer Python version.
2 comments

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.
Yeah. I had a shell snippet someplace that was essentially pip freeze | remove virtualenv | make virtualenv | pip install. It's not that hard.
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.