November 30th, 2012 Add Your Comments

Any Django developer has been using Python 2.7.x for some time now, but as Django 1.5 continues to move toward release, there will likely be a large number of developers officially moving to the Python 3.x track. You have to love how flexible Python is to work with, and this scenario is also evident of that.

You can run BOTH Python 2.7.3 and 3.3.x on OSX together, at the same time, and without conflict (not even in terminal). To accomplish this, just follow these simple steps:

(optional) Python should be installed by default, but if you like you can install the 64 bit version of Python 2.7.3 b downloading here and running the dmg. Be sure you CONTROL-CLICK the installer package, and choose to open with Installer (this way even OSX 10.8 systems will have no issues). Follow all the default prompts.

1. You can verify your Python installation in Terminal by simply typing python, which will output the current version and prompt, and close with exit()

2. Now download the 64 bit version of Python 3.3.x from here and running the dmg. Be sure you CONTROL-CLICK the installer package, and choose to open with Installer (this way even OSX 10.8 systems will have no issues). Follow all the default prompts.

BAM… you now have Python 3.3.x installed.

3. Now open a new Terminal and type python3, and you will now have the prompt for Python 3.3.x running, and if you exit() and simply type python, you will still have Python 2.7.3.

Wow… that was simple, and a perfect demonstration just how easy it is to work with Python. And with your new Python 3 installation, grab yourself Django 1.5 beta and get testing this release.