r/Python • • Aug 04 '26

Discussion What are you using to manage your dev environments in 2026?

I’ve always hated environment management. It always feels like this time-consuming hurdle between me and whatever I actually want to work on. But every so often a new thing comes out that promises to solve the problem once and for all, and it’s usually at least a little better than the last thing. So, what are you using today? venv? conda? pipenv? poetry? dev containers? uv? or something else?

88 Upvotes

159 comments sorted by

View all comments

Show parent comments

6

u/kilopeter Aug 04 '26

Wait. I'm a uv fan as much as the next person, but isn't the benefit you describe the entire point of venv, conda, and literally every python environment manager? Isn't a self-contained non-OS Python installation the entire point of environments?

conda create -n myenvname -c conda-forge python=3.13

29

u/droans Aug 04 '26

uv makes it much easier to swap between versions. No instructions necessary, just run uv venv --python x.yy.

Actual lockfiles are nice, too.

22

u/freeskier93 Aug 04 '26

I'm not familiar with conda but venv is still reliant on whatever Python interpreters you have installed (whether packaged with the OS or manually installed). With uv I can have a 100% fresh OS, install uv, clone my repo, then do uv sync and it will do everything, and do it extremely fast. It will download the correct version of Python for the project (as defined in the .python-version file) and create the virtual environment with all the required dependencies.

Venv does not manage Python interpreters. Uv does.

2

u/kilopeter Aug 04 '26

Got it, thank you! I obviously need to update my knowledge of the ecosystem.

7

u/zangler Aug 04 '26 edited Aug 05 '26

Kinda? UV is much less opinionated than Conda and is really the same as PIP in that regard.

UV is extremely FAST...like 100x... everyone knows that. What makes UV next level are the pragmatic features. Groups, virtualization, dependency handling...etc.

I don't know how people could possibly utilize multiple worktrees without it. It would either take far too long to setup each, or your OS gets polluted fast.

Edit: fixed spell check

2

u/Intrepid-Stand-8540 Aug 04 '26

conda had bad QoL and is really slow compared to uv.

1

u/badfoodman Aug 05 '26

Now imagine not having to run any extra commands to manage the python version. Someone updates the .python-version file and every developer gets it for free when they run uv sync

1

u/cointoss3 Aug 07 '26

Or just uv run, it will sync the environment first, then run.

1

u/cointoss3 Aug 07 '26

No. Not all of them use a custom Python version. Some do, some just setup the path to a virtual environment and use whatever Python is on the system.

1

u/nicholashairs Aug 04 '26

venv doesn't handle them separate from the os (unless I've missed something 🤔)

I can't comment on the others having not used them 🤷‍♂️

(So you may be right)