You can install Python 2.7:
$ brew install python
This will take a minute or two. Once that’s complete, you’ll have to add the new Python scripts directory to your PATH
To open
vi .bash_profile
then add
export PATH=/usr/local/share/python:$PATH
More details on this blogpost: http://johnlaudun.org/20120131-change-path-order-of-mac-os-x/
To try if Python is working on your mac or now.
Just run this command on your terminal :
python -c 'print "Hello World!"
If it prints "Hello World!" on your terminal, then congrats you have made it