this post was submitted on 13 Oct 2023
324 points (81.4% liked)

Programmer Humor

32396 readers
1178 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 

Sorry Python but it is what it is.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 50 points 1 year ago* (last edited 1 year ago) (18 children)

If this is from the perspective of a hobbyist or brand new Python dev, that's a fair opinion to have, I suppose.

That said, if you're using Python in a professional capacity, you really need to learn how to use the toolchain properly.

Python packaging and virtual environments are not difficult to understand, and I'd wager based on your comments elsewhere in this thread that your frustrations are born from not taking the time to understand why following the instructions from a fourteen-year-old blog post aren't working.

99.99% of the time, the fault isn't with pip, it's with the maintainer of the broken package you're trying to use.

[–] [email protected] 13 points 1 year ago (1 children)

They're not difficult by any means.

But they are tedious when compared to other solutions.

[–] [email protected] 3 points 1 year ago

If we talk about solutions: python has plenty. Which might be overwhelming to the user.

I use Direnv to manage my python projects. I just have to add layout pyenv 3.12.0 on top and it will create the virtual environment for me. And it will set my shell up to use that virtual environment as I enter that directory. And reset back to default when I leave the directory.

But you could use pipenv, poetry, pdm, conda, mamba for your environment management. Pip and python do not care.

load more comments (16 replies)