Environment:
kernel 2.6.18-238.el5, gcc 4.1.2.
Steps:
1.Get the source code package, Python-2.5.5.tgz (backup link).
2.Unzip the tarball
$ tar -zxvf Python-2.5.5.tgz
3.Enter the directory Phython -2.5.5, then create the makefile
$ ./configure
4.Build it and run a test
$ make
$ make test
5. If no error occurs, install
$ sudo make install
6.When it finishes, new Python's version can be examed using
$ python -V
Python 2.5.5