Purpose: The system runs Python by default, the system prompts 2.6.6, does not meet the practice environment--cut to 2.7.x
Steps
1:find command to find all Python-related files
#find/name= ' python* '
2. Go to the original 2.6.x python path to see which and 2.6 are relevant.
LS python*-L
3. Delete the 2.6 related Python green files, such as
#mv/usr/bin/python2.6*
4:wget online or offline download Python 2.7.13-> extract
#./configure
#make
#make Install
5. Connect the newly installed 2.7.13 python soft link to python.
Ln-s/usr/local/python27/bin/python2.7/usr/bin/python
6. View version information->python 2.7.13. Done.
#python-V
Ln-s/usr/local/python27/bin/python2.7/usr/bin/python
Reference: Http://www.cnblogs.com/liwei0526vip/p/6219998.html?utm_source=itdadao&utm_medium=referral
Centos 6.9 comes with Python 2.6.6 switch to 2.7.13 (or later)