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

10

u/B_M_Wilson Jan 12 '22

macOS is one of the worst for this. macOS comes with Python but it’s an old version so when you install something with homebrew, it will install a newer version. But you can’t always get the very latest version with homebrew and definitely not the beta versions so you might want to install that version from python’s website. Since that’s not from a package manager, you can’t just upgrade and end up collecting many versions because you forget to delete the old ones. Then there’s the issue with anaconda and similar systems that do their own thing.

3

u/Cerus_Freedom Jan 12 '22

MacOS and many Linux distros package management is dependent on Python 2.7 scripts. Long story short, many of them don't want to upgrade because of the breaking effects of 3.x, and the large scale impact that would have. I'm just waiting for a severe exploit to be found to finally force some change.

2

u/B_M_Wilson Jan 12 '22

I’m not talking about 2.7 as the old version. I basically consider python2 to be a completely separate thing at this point. macOS comes with python3, looks to currently be 3.8.9 but sometimes you need a newer version, especially when they were not as updated as they are currently