1

I need to know How to install System Python 2.7 on my Mac. This is because, I unknowingly uninstalled it (I thought I was removing the Python I downloaded from Python.org)

I followed this Stack Overflow answer, and after the damage had been done, I read the comments telling me NOT TO do that.

The current reason I am wanting to install System Python 2.7 is because it is needed to install PyGame. Below is a screenshot of what I am facing when trying to install PyGame:

enter image description here

Community
  • 1
  • 1
KamilDev
  • 718
  • 2
  • 7
  • 21

2 Answers2

2

I recommend installing packages on OS X using Homebrew as it keeps everything you install in one place. Allowing you to upgrade or uninstall easily and not needing to remember how or where you installed it.

Once it is installed you simply type brew install python in your terminal. This will install Python 2.7.10 and it will be available at /usr/local/bin/python.

djv
  • 466
  • 6
  • 15
  • 1
    This is good advice in general, so I'm not downvoting it, but it won't restore the system Python interpreter. –  Jun 25 '16 at 20:38
1

The only supported way to restore the system Python framework on macOS is to reinstall the operating system. It is treated as a component of the core operating system, so there is no way to selectively reinstall it.