Installing python 2.7 on CentOS 5
One way is to build from source, after having installed prerequisites. Tested by me right now, worked like a charm! If you are going for 32-bit change "x86_64"
in:
yum install gcc gcc-c++.x86_64 compat-gcc-34-c++.x86_64 openssl-devel.x86_64 zlib*.x86_64
to "i386".
Read more: Link - centos5 - How should I upgrade Python on CentOS 5.5 (64-bit) - Server Fault