r/apple • • Jun 04 '19

Apple will soon be removing Python, Perl, and Ruby from macOS

From the macOS 10.15 beta release notes, under the "Scripting Language Runtimes" section:

https://developer.apple.com/documentation/macos_release_notes/macos_10_15_beta_release_notes

Apparently Apple is planning to remove all of these scripting language runtimes from macOS in a future release. This is very irritating, as all the software out there that relies on these runtimes can no longer assume they will exist on any user's system and will have to bundle it themselves, or remove their reliance on it.

This decision makes no sense to me. Being able to assume those scripting runtimes exist on any macOS system was one of the things that made it great. It's not like these were burning a hole in people's hard drives either -- they're small in the grand scheme of things. All this does is make developer's lives more difficult and cause there to be tons of redundant runtimes in various app bundles. Who does this benefit? Why is it important?

edit: Seems most people quite like that they're removing Python et al, especially due to it being an outdated version. Fair enough!

538 Upvotes

195 comments sorted by

View all comments

Show parent comments

5

u/mydogspeakslatin Jun 05 '19

Can I ask just as a newbie to Python what the best way is to install pip packages on a Mac? Anywhere I can read up on this more?

12

u/Stubb Jun 05 '19

The virtual environments discussed earlier are good for developers who need to work with different versions of the same package. For most users, installing packages in their home directory by passing the --user option to pip will solve the problem. For example, when installing the jsonpickle package:

pip install --user jsonpickle

See this post on Stack Overflow.

2

u/Jaypalm Jun 06 '19

IMO pyenv is the best way to install python on a Unix system. It allows you to install and maintain multiple python versions/environments, each with a separate pip, so when you use 'pip install requests' it's specific to that version.