Tuesday, December 31, 2013

Updating Python On Mac OS X

The Python that comes with OS X is a bit out of date, so I decided to update it.  After poking around the internet for a while, I came across some pretty good docs:


Basically, I ran:

$ brew install python

I got Python along with Pip and Distribute, which is awesome.  I heard both pieces of software helps you with installing and uninstalling other Python packages.

I then installed virtualenv, a handy dev tool that allows me to create virtual Python environments that do not interfere with each other.

$ pip install virtualenv

In order to see the new version of Python in action, I had to open a new terminal window.  Everything looks good.  My only complaint is that the version of Python I have now installed is 2.7.5 instead of 2.7.6, so it is a step behind the latest and greatest version.  I am going to have to investigate if this is a serious issue or not.  I heard 2.7.6 did fix some bugs in 2.7.5, but the user might have to install an updated version of Tcl/Tk to get IDLE working.

No comments:

Post a Comment