9 ms·
Yeah, venv is really the best way to manage Python environments. In my experience other tools like Conda often create more headaches than they solve. Sure, ven
by Gazoche 2y ago
Yeah, venv is really the best way to manage Python environments. In my experience other tools like Conda often create more headaches than they solve.
Sure, venv doesn't manage Python versions, but it's not that difficult to install the version you need system-wide and point your env to it. Multiple Python versions can coexist in your system without overriding the default one. On Ubuntu, the deadsnakes PPA is pretty useful if you need an old Python version that's not in the official repos.
In the rare case where you need better isolation (like if you have one fussy package that depends on specific system libs, looking at you tensorflow), Docker containers are the next best option.