r/programminghorror • • Jan 12 '22

Python environment

https://imgs.xkcd.com/comics/python_environment.png

[removed] — view removed post

1.4k Upvotes

101 comments sorted by

View all comments

-1

u/geeshta Jan 12 '22

I never had this problem and don't really understand how you get there. You have one or more OS Python's out of which one is set as default via update-alternatives. Which is on PATH. With pip. And then a venv for each project, in the project folder. With pip.

2

u/[deleted] Jan 13 '22

The fact that you had to type that much to explain it is part of the problem. I learned python before virtual environments existed, and it was that bad then. It's gotten better, but dependency management is still one of its biggest weaknesses. There are other languages that handle it much more gracefully.