If you have a later version than 2.6 you’ll need to set 2.6 as the default Python. Later versions would be 2.7 and 3.1; see what you have by typing
at the terminal. For purposes of this example we’ll assume you have 3.1 installed. You’ll next need to execute the following commands:
This last command will allow you to choose which version of python to use by default. If you have done everything above correctly, python2.6 should already be set as the default. If it is not, choose it to be the default. From now on, runningpython should start version 2.6.
Undoing These Changes
In some cases (e.g., installing or updating certain packages), you’ll get an error message if you’ve run the commands above. To update these packages, you’ll have to temporarily undo these changes. Here’s how to do that:
Once you’re done updating these packages, execute the commands at the top to set python2.6 as the default again.