Change default Python version from 2.4 to 2.6 Change default Python version from 2.4 to 2.6 python python

Change default Python version from 2.4 to 2.6


As root:

ln -sf /usr/bin/python2.6 /usr/local/bin/python

This will make a symbolic link from /usr/local/bin/python --> /usr/bin/python2.6(replacing the old hardlink).


As an alternative, you can also just add an alias for the command "python" in the your bash shell's startup file.

so open the startup file:emacs ~/.bashrc

in the editor u append:alias "python" "python2.6"

and restart the shell.


rm /usr/local/bin/python
ln -s /usr/local/bin/python2.6 /usr/local/bin/python