r/Python • • Apr 30 '18

xkcd: Python Environment

Post image
2.4k Upvotes

388 comments sorted by

View all comments

Show parent comments

63

u/origin415 Apr 30 '18

Conda does this but doesn't have all PyPI packages. Also, occasionally you have things that assume that python references the system installed Python 2 rather than your default conda env. Way better than anything else I've seen though.

27

u/Tweak_Imp Apr 30 '18

Why are so many people still on older versions of python? I can see why it doesnt just update itself (for commercial python use for example), but Python 2.7.0 was released on July 3rd, 2010... 8 years ago. Isnt an update to a higher version with the update of the code not worth it?

16

u/origin415 Apr 30 '18

It's a lot of code to update. Most open source libraries are compatible with python 3 but a lot of companies aren't willing to migrate entire codebases internally. Also, as far as programs assuming you have Python 2 in your path, that's because OSX and most Linux distributions have it that way and very few have python 3.

-31

u/khne522 Apr 30 '18
  • Stop using RedHat.

  • Stop using Amazon Linux.

  • macOS… not even once, even if it isn't that hard.

  • Have fun with some old versions of Fedora, Ubuntu, etc.

If you must use these, use pyenv to properly install Python… to some hidden directory.

→ More replies (10)