GCC-C ++ the install yum GCC -Y
mkdir /usr/local/python2.7
the tar-2.7.11.tgz zxvf the Python
CD-2.7.11 the Python /
./configure --prefix = / usr / local / python2.7
the make && install the make
mv / usr / bin / Python /usr/bin/python.bak
LN /usr/local/python2.7.11/bin/python -s / usr / bin / Python
verification, check the version running python -V
prevent abnormal execution yum , modified version of yum Python using
vi / usr / bin / yum
will head #! / usr / bin / python changed to #! / usr / bin / python.bak
Linux python2.4 upgrade to 2.7
Guess you like
Origin www.cnblogs.com/liang545621/p/12605667.html
Recommended
Ranking