uv sounds great! For those still using Python v2, how well does it work? pip used to be a pain when having to manage both Python v2 and v3 projects and tools.
uv downloads overtake Poetry for Wagtail users
31–40 of 206 posts
Re: uv downloads overtake Poetry for Wagtail users
#32I’m still using pip, what am I missing?
Re: uv downloads overtake Poetry for Wagtail users
#33Man, I’m so jealous of insane praise that uv (and most other astral tools) gets. I don’t think ever seen anything so unanimously lauded around here.
Re: uv downloads overtake Poetry for Wagtail users
#34For the uninitiated what is the benefit of UV over pip? I've been working with pip for so long now that I barely notice it unless something goes very wrong.
If you pip install something, you install it on the system python (the python binary located at sys.executable). This can break systems if the wrong combination of dependencies comes together. This is why you should never install things via pip for other people, unless you asked them first.
Now how else would you install them? There is a thing called virtual environments, which basically allows you to install pip dependencies in such way, they are only there within the context of the virtual environment. This is what you should do when you distribute python programs.
Now the problem is how do you ensure that this install to the virtual environment uses specific versions? What happens when one library depends on package A with version 1.0 and another library depends on a package with version 2.0? Now what happens if you deploy that to an old debian with an older python version.. Before uv I had to spend literal days to resolve such conflicts.
uv solves most of these problems in one unified place, is extremely performant, just works and when it does not, it tells you precisely why.
Re: uv downloads overtake Poetry for Wagtail users
#35Re: uv downloads overtake Poetry for Wagtail users
#36is it me or is there a new python dependency manager every year?
Re: uv downloads overtake Poetry for Wagtail users
#37Re: uv downloads overtake Poetry for Wagtail users
#38Not a surprise. I said it before and I'll say it again, all the competing projects should just shut up shop for the good of Python. uv is so much better it's like pushing penny farthings after the safety bike has been invented.
Re: uv downloads overtake Poetry for Wagtail users
#39Plenty of packages still fail trying to spawn cmake, gcc and al. UV does not solve all the hard problems. Maybe switch to Pixi?
Re: uv downloads overtake Poetry for Wagtail users
#40For the uninitiated what is the benefit of UV over pip? I've been working with pip for so long now that I barely notice it unless something goes very wrong.
It's a much more complete tool than pip. If you've used poetry, or (in other languages) cargo, bundler, maven, then it's like that (and faster than poetry).
If you haven't, in addition to installing dependencies it will manage and lock their versions (no requirements.txt, and much more robust), look after the environment (no venv step), hold your hand creating projects, and probably other things.
Edit to add: the one thing it won't do is replace conda et al, nor is it intended to.