If you have Python installed but it’s older than 2.5, then you will need to upgrade Python. Download latest version (2.7.5) from Python website and extract. Then run the following commands in extracted archive
[user@white-magnet python-2.7.5]# ./compile [user@white-magnet python-2.7.5]# make [user@white-magnet python-2.7.5]# sudo make install
After that you will need to remove the /usr/bin/python symlink using the command
[user@white-magnet python-2.7.5]# sudo rm -f /usr/bin/python
And then add a symlink to the newly installed Python
[user@white-magnet python-2.7.5]# sudo ln -s /usr/local/bin/python2.7 /usr/bin/python
After adding the symlink, you can test your Python vesrion as shown below
[user@white-magnet ~]# python Python 2.7.5 (default, May 22 2013, 05:16:07) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>>