PIP vs UV: The Future of Python Package Management?

  Рет қаралды 4,771

Jake Callahan

Jake Callahan

Күн бұрын

Пікірлер: 20
@JakeCallahan
@JakeCallahan 7 ай бұрын
Update: I have released an updated review that includes all the progress UV has made since this one. kzbin.info/www/bejne/mKi1mIyuoqikgqs --- I have switched to using uv for virtual environment creation and installation of IPython. With the user-level caching, setup/install went from 5.674s down to 0.451s, and with a complete cache just 0.078s!
@rafiqrushdan
@rafiqrushdan 7 ай бұрын
impressive
@0xZarathustra
@0xZarathustra 7 ай бұрын
issue is tho that it's dependency resolver is not as good as poetry. I don't have a overly complicated setup, but need to downgrade pyyaml during the setup. Poetry does this without issue, `uv pip install pyyaml==5.4.1` just crashes. Well, not only that, the fact that the lock files are not system and platform independent... pretty terrible you gain seconds during the setup of the environment - if it can find the packages that is ... - only to lose all of those seconds and many more hours when you need to ensure compatibility with other systems and platforms 💀
@JakeCallahan
@JakeCallahan 7 ай бұрын
The team certainly has areas to improve, and it will be interesting to see how they handle things like resolver optimization. As you saw in the video, it had trouble with one of my team's projects. Thanks for weighing in!
@felicytatomaszewska
@felicytatomaszewska 6 күн бұрын
[EDITED] Yes the new version of UV fixes all the issues shown in this video. So thank you Jake for updating on the topic. I have installed and started test/using it. [OLD] UV is a new shiny tool but apart from installing for simple projects, it cannot compete with the old and tested pip right now..may be in the later versions fix all the issues.
@JakeCallahan
@JakeCallahan 6 күн бұрын
Check out my follow-up video linked in the pinned comment. You may be pleasantly surprised at the progress since this video.
@vortex2210
@vortex2210 7 ай бұрын
Would definitely love to see a comparison between Poetry and uv since all of our projects have been moved to poetry some time back. But this is quite interesting!!
@JakeCallahan
@JakeCallahan 7 ай бұрын
That would be a great follow-up once the project is more mature.
@vortex2210
@vortex2210 7 ай бұрын
@@JakeCallahan yaa, currently I feel the lockfile system works quite well and the envs are easy to manage. I hope uv too gets there soon!
@dragonkat13
@dragonkat13 7 ай бұрын
interesting! look forward to seeing how it unfolds! thank you for covering it! what is your favorite thing about PIP, favorite about UV?
@JakeCallahan
@JakeCallahan 7 ай бұрын
pip's compatibility is hard to beat, so it's still the king of production environments. However, I think UV is well positioned to win out in the long term, if Astral can fulfill their vision.
@B3L13V3R
@B3L13V3R 3 ай бұрын
I didn't have any of these issues testing the same on an M1 Max in late July 2024. Hope it helps.
@JakeCallahan
@JakeCallahan 3 ай бұрын
The team and community has done a great job with uv since then. It is now my daily driver for package management. I'll need to do an update video sometime soon.
@B3L13V3R
@B3L13V3R 3 ай бұрын
@@JakeCallahan Awesome! The video is a go-to for the potential for uv.
@mews75
@mews75 7 ай бұрын
I mean the speed is cool but not being able to install all pypi packages is enough for me to not use it
@JakeCallahan
@JakeCallahan 7 ай бұрын
It's definitely not mature enough yet, but the team moves pretty fast and has an active community, so hopefully they can get most of the big issues I ran into fixed soon.
@0730pleomax
@0730pleomax 11 күн бұрын
What do you mean by not being able to install all pypi packages?
@mews75
@mews75 9 күн бұрын
@@0730pleomax i haven't tried again since i commented this but when i did try to install the dependencies in some requirements.txt it just said it couldnt install half of them
@ash1kh
@ash1kh 4 ай бұрын
Thats why i use poetry if i do any python related stuff.
PIP vs UV: The Rematch and More!
12:41
Jake Callahan
Рет қаралды 1,3 М.
Is "uv" the FUTURE of Python package management?
13:28
Carberra
Рет қаралды 8 М.
Smart Sigma Kid #funny #sigma
00:14
CRAZY GREAPA
Рет қаралды 58 МЛН
Will A Basketball Boat Hold My Weight?
00:30
MrBeast
Рет қаралды 105 МЛН
My Daughter's Dumplings Are Filled With Coins #funny #cute #comedy
00:18
Funny daughter's daily life
Рет қаралды 35 МЛН
why I will never use python-poetry
9:09
anthonywritescode
Рет қаралды 61 М.
Is UV the FUTURE of Python PACKAGING? 🐍📦
17:52
Hynek Schlawack
Рет қаралды 9 М.
30 Programming Truths I know at 30 that I Wish I Knew at 20
17:41
Don't Use Pip For Big Projects - Use These Instead
7:56
Isaac Harris-Holt
Рет қаралды 25 М.
Understanding Python: Logging Basics
17:54
Jake Callahan
Рет қаралды 951
UV - Python Package Manager Tutorial
14:02
JCharisTech
Рет қаралды 1,2 М.
"The Life & Death of htmx" by Alexander Petros at Big Sky Dev Con 2024
23:01
Montana Programmers
Рет қаралды 65 М.
Ruff is a Game Changer for your Python Code!
15:10
James Clare
Рет қаралды 2,3 М.
Understanding Python: namedtuples
20:06
Jake Callahan
Рет қаралды 484
Smart Sigma Kid #funny #sigma
00:14
CRAZY GREAPA
Рет қаралды 58 МЛН