Background: The python version of the machine you just applied for is 2.6, and you need to manually upgrade to version 2.7.13;
steps: 1 Download the source package wget
of version python2.7.13 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 Compile and install
cd Python-2.7.13
./configure --prefix=/usr/local/python2.7
make && make install
4 Backup the original python startup soft connection
mv /usr/bin/python /usr/bin/python.old
5 Regenerate the soft link to the path of compilation and installation
ln -s /usr/local/python2.7/bin/python2.7 /usr/bin/python
In addition, if you find that ordinary users have not upgraded to python2.7.13, you need to do the following steps:
find the path of 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 python to check and find that it has been upgraded to python2.7.13