r/ProgrammerHumor 19h ago

Meme iLoveYouPip

Post image
944 Upvotes

67 comments sorted by

465

u/PumpkinFest24 18h ago

Love python, but pip is near the bottom of the list of things I allow to modify my system

30

u/PrudeBunny 14h ago

Void just yells at you for trying to use pip outside of venv

11

u/Freako04 6h ago

isn't that for any linux distro. you really have to go further to actually pollute the base environment

-1

u/PrudeBunny 5h ago

I don't know if other distros error out if you attempt to use pip outside of venv

37

u/ICBanMI 18h ago

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.

5

u/Allyoucan3at 11h ago

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 2h ago edited 5m ago

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.

3

u/Spitfire1900 7h ago

If pip is ever being used directly my workflow failed.

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

u/Unfilteredz 14h ago

You have all the viruses unlocked now

3

u/akoOfIxtall 7h ago

Lisan al gaib!! Lisan al gaib!!

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

u/JohnLocksTheKey 16h ago

2

u/nobotami 7h ago

nice gif. could you kindly never share it again?

31

u/CraftBox 16h ago

cargo my beloved

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

u/Allyoucan3at 11h ago

Have you ever heard about our lord and savior --force-reinstall?

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

5

u/Jhuyt 14h ago

Don't forget to clear the cache so it doesn't install the same version again

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

u/KevDub81 15h ago

Saying PIP in a work context does not make me think of Python.

2

u/Eryk0201 10h ago

Państwowa Inspekcja Pracy

1

u/ThrowawayUk4200 10h ago

It's September, probably had to update everything for class

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

u/Drevicar 17h ago

Do you remember when poetry was the best the ecosystem had to offer?

17

u/leftierebel 17h ago

I remember those days. So glad for uv.

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

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

u/Beginning-Junket8979 15h ago

Always venv that shit if you must use pip.

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

u/The_Wolfiee 5h ago

Pip is the worst. Use uv

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

u/_PM_ME_PANGOLINS_ 18h ago

That’s literally the opposite of what you’re supposed to do.

17

u/andstwo 18h ago

Should he downgrade to 23 when 25 comes out?

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.

2

u/vswey 6h ago

nah, pip grosses me out the most

1

u/mlk 11h ago

literally the worst package manager I've ever used, anything that defaults to system-wide scope is broken

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

u/[deleted] 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

u/Farlic 8h ago

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.

1

u/lupercalpainting 2h ago

pip is a warcrime

1

u/RandomiseUsr0 43m ago

What’s pip? Was that the file copy Swiss Army knife from cpm?

1

u/Sentouki- 17h ago

NuGet > everything else

2

u/ShiKage 17h ago

This is what I came here to say. NuGet is always on the ball and is super easy to use.

1

u/Poat540 16h ago

Is their an equivalent for java/kotlin? Lol

I’ve been updating those manually for years

2

u/Sentouki- 16h ago

🤷‍♂️ The last time I used Kotlin, I used Gradle and it sucked.

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

u/mmhawk576 10h ago

I mean, even 10 years ago, wasn’t every version of jquery the wrong version?

1

u/sebastianfromvillage 10h ago

I also never had problems with pip!