You can try compiling it from sources, at the root:
yum -y install python-devel openssl openssl-devel gcc sqlite-devel wget http://www.python.org/ftp/python/2.7.5/Python-2.7.5.tar.bz2 tar -xvjf Python-2.7.5.tar.bz2 cd Python-2.7.5 ./configure --prefix=/usr/local/python2.7 --with-threads --enable-shared make make install altinstall ln -s /usr/local/python2.7/lib/libpython2.7.so /usr/lib ln -s /usr/local/python2.7/lib/libpython2.7.so.1.0 /usr/lib ln -s /usr/local/python2.7/bin/python2.7 /usr/local/bin /sbin/ldconfig -v
Then check the correctness of the python / usr / local / python 2.7 / bin / python2.7 -V
And, as a regular user:
echo "alias python='/usr/local/python2.7/bin/python2.7'" >> ~/.bashrc source ~/.bashrc python -V
Good luck :)
M-gregoire
source share