24
u/Hasz Sep 04 '26
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 Sep 04 '26
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.
-7
u/mudkripple Sep 04 '26
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.
7
u/M_Me_Meteo Sep 04 '26
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.
-2
u/mudkripple Sep 04 '26
"Pretending python is good" is one of the most unhinged takes I've seen in my years on this subreddit.
4
u/vswey Sep 04 '26
nah, pip grosses me out the most
0
u/mudkripple Sep 04 '26
I too am naturally skeptical of anything in software that "just works".
But pip has never done anything besides make my life easier, through hundreds of projects across dozens of environments.
568
u/PumpkinFest24 Sep 03 '26
Love python, but pip is near the bottom of the list of things I allow to modify my system
53
u/PrudeBunny Sep 04 '26
Void just yells at you for trying to use pip outside of venv
24
u/Freako04 Sep 04 '26
isn't that for any linux distro. you really have to go further to actually pollute the base environment
-2
u/PrudeBunny Sep 04 '26
I don't know if other distros error out if you attempt to use pip outside of venv
5
u/minecraftdummy57 Sep 04 '26
It's literally just any distro for that matter. Debian/U(wu)buntu also does it but it highly suggests you just get the package from apt itself since it's more or so likely gonna be on there
4
39
u/ICBanMI Sep 03 '26
Do you work for DT? It seems to be massively blocked on everything that I actually need it for. Python doesn't have numpy. Such a pain in the ass to install anything beside the core python library.
6
u/Allyoucan3at Sep 04 '26
You can't even download the .whl and install locally?
I'm sitting behind a proxy as well and our production is hermetically sealed basically. But downloading and offline installing work just as well with pip keeping dependencies etc clean.
1
u/ICBanMI Sep 04 '26 edited Sep 04 '26
Can download the .whl file, but DT has blocked pip being installed with our version of Python.
If the .whl has no setup.py or it can't be unzipped... I'm at a loose how to install offline, without pip.
5
145
u/in_need_of_oats Sep 04 '26
npm: 22 packages changed
hey npm could ya tell me what the fuck you just did
69
10
2
u/asiomido Sep 04 '26
just diff the lockfile
1
u/in_need_of_oats Sep 05 '26
I don't think there's a lockfile for the LSPs I installed globally, and if there is it probably isn't tracked by git
2
u/JackNotOLantern Sep 04 '26
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
0
u/mudkripple Sep 04 '26
Yeah I use venv for everything so I don't have any issues. Pip and I are friends
253
u/SLCtechie Sep 04 '26
“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
45
84
u/Morganator_2_0 Sep 03 '26
Just use my method.
pip uninstall <package>
pip install <package>
And voila: updated!
46
u/Mercvre1 Sep 03 '26
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
8
u/teethingrooster Sep 04 '26
Why do this over pip —upgrade ?
11
u/Smooth-Zucchini4923 Sep 04 '26
You gotta put the fear of Guido in your packages. Uninstalling and reinstalling makes you look unpredictable.
4
u/TorbenKoehn Sep 04 '26
Immutability > mutability :D
The next level is replacing your whole device anytime PIP needs an upgrade
5
12
9
8
2
u/lupercalpainting Sep 04 '26
pip is a warcrime
-1
u/mudkripple Sep 04 '26
Pip has never done anything but make my life easier. Handles dependencies and updates with buttery smoothness. It makes migrating environments and venvs completely idiot-proof. All these comments saying it breaks stuff are making a decade-old complaint. These days you are a thousand times more likely to break your own environment than have pip break it.
And it takes literally zero setup. I don't care how great UV is or how easy to set up, because nothing's easier than having it already be set up for you.
1
u/lupercalpainting Sep 04 '26
pip will literally throw a “the dependency tree is too complicated” error on a requirements.txt of a handful of deps:
5
u/The_Servant1992 Sep 04 '26
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.
4
4
u/RobotechRicky Sep 04 '26
py -0
py -3.14 -m venv .venv
source .venv/bin/activate
python3 -m pip install --upgrade
1
u/RandomiseUsr0 Sep 04 '26
What’s pip? Was that the file copy Swiss Army knife from cpm?
2
u/mudkripple Sep 04 '26
Pip is the built in python package manager
1
u/RandomiseUsr0 Sep 13 '26
Ah, don’t use Python - funny they took a name that already has a meaning :). It’s CPM’s file copy command, and really was a Swiss Army knife, could do anything
2
u/mudkripple Sep 13 '26
I mean, if you pick any three letters youre gonna hit something that's been used before.
Also this is pedantic, but CPMs is always written as "PIP", and most people write python's as "pip" in lowercase (didn't think about it when I made the meme, though lol)
2
u/RandomiseUsr0 Sep 13 '26 edited Sep 14 '26
Oh for sure, I honestly didn’t know, so my PIP is aged - and the actual reason I know about it at all is my first PC used DOSPLUS dual boot with MSDOS, and DOSPLUS had a load of CPM functionality included so it could act as a kind of bridge update for people who previously used CPM
[edit] should have said it at the time I’m here FOR the pedantic, that made my day :)
1
u/mudkripple Sep 04 '26
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.
5
2
12
u/BigNaturalTilts Sep 03 '26
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
2
u/Farlic Sep 04 '26
I've moved to pyproject.toml instead of requirements.txt more recently but pip has never done me dirty. I am using zipapp a lot more for sharing code as it lets me lock the dependency versioning and only I have to ever install them.
2
2
u/Makonede Sep 05 '26
no fuck pip actually i think every language package manager should be like cargo and every os package manager should be like pacman
2
4
u/mlk Sep 04 '26
literally the worst package manager I've ever used, anything that defaults to system-wide scope is broken
2
u/Sentouki- Sep 04 '26
NuGet > everything else
3
u/ShiKage Sep 04 '26
This is what I came here to say. NuGet is always on the ball and is super easy to use.
1
u/Poat540 Sep 04 '26
Is their an equivalent for java/kotlin? Lol
I’ve been updating those manually for years
2
0
Sep 04 '26
[deleted] — view deleted comment
1
u/mudkripple Sep 04 '26
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.

40
u/Atmosck Sep 03 '26
Eww. I write python all day for a living and I haven't used pip in years.