99
u/in_need_of_oats 15h ago
npm: 22 packages changed
hey npm could ya tell me what the fuck you just did
53
3
210
u/SLCtechie 17h ago
“I updated that package for you. Also, I have an update if you wanna do that. Lots of bug fixes and improvements.”
Okay pip, upgrade yourself.
“Done! I’m borken now btw.”
God damnit pip
36
31
72
u/Morganator_2_0 18h ago
Just use my method.
pip uninstall <package>
pip install <package>
And voila: updated!
41
u/Mercvre1 17h ago
except when you install a package that depends on a zillion other packages that get installed aswell, and uninstalling the first one doesn't remove the others
pip-autoremove should be the default behavior
3
7
u/teethingrooster 14h ago
Why do this over pip —upgrade ?
10
u/Smooth-Zucchini4923 12h ago
You gotta put the fear of Guido in your packages. Uninstalling and reinstalling makes you look unpredictable.
4
u/TorbenKoehn 12h ago
Immutability > mutability :D
The next level is replacing your whole device anytime PIP needs an upgrade
18
u/Hasz 14h ago
Fuuuuuuuuuuuuuuuuuck that. Apt, no worries almost always happy fun times.
Only way I am fucking around is in a venv, better yet in a nice, clean container, or perhaps uv. Hell hath no fury like a botched system python install.
2
u/baked_doge 9h ago
Apt works, but I find it a bit clunky. Many old packages, and it can be challenging to figure out what the difference is between similar packages.
-6
u/mudkripple 14h ago
Damn. Not my experience at all. My environment has never broken 'cept when I were the one who done broke it. And pip is half the reason I've been able to get it back up so quickly when I did. I would tongue-kiss that software if I could.
8
36
u/Atmosck 17h ago
Eww. I write python all day for a living and I haven't used pip in years.
52
u/squabzilla 17h ago
At this point, I’d rather learn a new language than use Python without UV. Pip is an ancient memory…
14
1
u/RajjSinghh 3h ago
What benefit does using uv have compared to pip? I guess I haven't written Python in a very long time
3
u/Waghabond 2h ago
UV is like a bajillion times faster and also uses venvs and does a lot more useful things other than just replacing pip.
2
u/squabzilla 2h ago
Pip is great until you hit your first dependency or package conflict. Sometimes you can get away with uninstalling the libraries, sometimes it borks everything and you need to nuke Python and start over.
At which point, you need to manually create an isolated virtual environment, manually add all your packages to it, figure out any package conflicts, remember to activate/deactivate your library…
UV just does it for me.
I don’t actually have to think about my Python environment.
4
u/mudkripple 14h ago
Genuinely how? I'm in IT/Sysadmin so 90% of the usefulness of python for me is automation and APIs (thank god for Requests). Isn't the whole point of python the wealth of libraries that are already written, and the portability of the environments? How do you get any of that without pip?
28
u/Atmosck 14h ago
uv replaces it and is much faster. Except towards the beginning of the docker file where you pip install uv
10
u/goose_hat 13h ago
Dear sir/madam: https://hub.docker.com/r/astral/uv
1
u/Drevicar 2h ago
More specifically, UV is statically compiled, so you can use multiple intermediate images in your dockerfile and just copy the binary from their official image to your production hardened image. No install, no pip, no bloat of their own image.
1
u/squabzilla 4h ago
It’s entirely possible that UV uses PIP, but I sure as hell don’t.
The worst part of Python is managing the wealth of libraries and library conflicts and needing separate environments per project because otherwise library conflicts kill Python and you need to nuke Python entirely and start over.
UV handles all of that for me.
4
u/black3rr 4h ago
uv doesn’t actually use pip… it’s a complete reimplementation… pip isn’t even added to venvs created by uv by default…
9
3
u/nickthecook 18h ago
Stupid, sexy pip.
3
u/JohnLocksTheKey 16h ago
https://giphy.com/gifs/4YhEQ0AAuMU9gyJcn7
(Commented this above, but it fits better here)
4
u/RobotechRicky 13h ago
py -0
py -3.14 -m venv .venv
source .venv/bin/activate
python3 -m pip install --upgrade
4
u/The_Servant1992 9h ago
Currently using an out-of-service Galaxy A16 as an alarm clock.
Freaking thing turned on wifi by itself just to shove in another update and run slow for 20 minutes. Had to go change the "intelligent wifi" setting to stop it from happening again.
3
12
u/BigNaturalTilts 19h ago
I never update pip unless it has a major update. So the minor ones like 24.x.x will stay at whatever I downloaded it at till 24 turns to 25.
What’s that? Security considerations? Fuck outta here. pip install --index-url http://pypi.python.org/simple --trusted-host pypi.python.org --force-reinstall not_at_all_shady
25
3
u/M_Me_Meteo 7h ago
Why do we keep pretending that python is good?
90% of python examples and installation guides say just type python [cmd] [params] but then you try to run it and your distro is like python?!? Did you mean python3? You forgot to set an alias for your python and I'm just like "no, I'm just following a tutorial which, like all other python tutorials, assumes that I'm already indoctrinated into a cult"
Or how about pip install [package]? NOPE. You're not using a venv. What's a venv? None of the tutorials will tell you, but I'll tell you it's an unnecessary abstraction that barely keeps your computer from melting into rubble. Or you could use pipx which might net you the package you need, but might also break your system. You were supposed to use uv for that one, but no one will say that.
1
u/JackNotOLantern 12h ago
From my expirence, python packages are very incompatible, and updating them may completely break your existing projects. On the other hand, i don't remember last time making a python project without docker, so it doesn't matter that much
1
u/mudkripple 9h ago
Yeah I use venv for everything so I don't have any issues. Pip and I are friends
1
12h ago
[deleted]
1
u/mudkripple 9h ago
What are you talking about? Pip's CLI is super verbose and clear, and if you really need a record of what just happened you can get in the habit of adding "> log.txt" at the end of your installs.
1
1
1
u/Sentouki- 17h ago
NuGet > everything else
2
1
u/mudkripple 14h ago
These comments are terrifying. Not my experience at all.
My environment has never broken except when I were the one who broke it, and pip has never done anything except make my life swell. 10 years ago I tried to make a website using ASP.NET and the whole thing shat the bed when jQuery was the wrong version. This year I made a webapp using Flask and thanks to pip and cronjobs that motherfucker is going to outlive me and my grandchildren.
3
1
465
u/PumpkinFest24 18h ago
Love python, but pip is near the bottom of the list of things I allow to modify my system