Background: The newly-applied machine Python version is 2.6 and needs to be manually upgraded to the 2.7.13 version;
Steps:
1 Download the python2.7.13 version of the source package
wget http://python.org/ftp/python/2.7.13/Python-2.7.13.tgz--no-check-certificate
2 Unzip the source package
TAR-XVF python-2.7.13.tgz
3 Compiling the installation
CD Python-2.7.13
./configure--prefix=/usr/local/python2.7
Make && make install
4 Back up the original Python start soft connect
Mv/usr/bin/python/usr/bin/python.old
5 Regenerate soft links to the path of the compiled installation
Ln-s/usr/local/python2.7/bin/python2.7/usr/bin/python
In addition, if you find that ordinary users do not upgrade to python2.7.13, the following steps are required:
Identify the path to the environment variable
Echo $PATH
1 cd/usr/local/bin/
2 unlink Python
3 ln-s/usr/local/python2.7/bin/python2.7 python
Complete, enter the Python check and discover that it has been upgraded to python2.7.13
Linux machine Upgrade Python version to 2.7.13