-
Python comes pre-installed in Mac OS X. To check if your system already has Python2, Open the terminal. You can navigate to /Applications/Utilities and double click on the terminal.
-
In the terminal, type
python -V
This will show you the version of python in your system if it is present. -
In case you don't have python installed, you can do it manually. The latest is python 2.7.13. Use this link to get this version. Double click on the bit-installer for Mac.
-
A file will be downloaded. Go to the downloads and double click on it. After that double click on the Python.mpkg file.
-
Python installer will start with an introduction. Click on next.
-
Continue with all the other sections in the installer, like accept the license agreement.
-
Click on the Install option when it appears. Enter your system password if prompted.
-
Close the installer once python in successfully installed.
-
You can now type
python
in the terminal to start the command line interface of python. You can also go to launchpad and search for IDLE for python.