update python2. to python2.7 on CentOS

pylist 351

update python2. to python2.7 on CentOS

cd ~/Downloads
wget https://www.python.org/ftp/python/2.7.9/Python-2.7.9.tgz

# tar xzf Python-2.7.9.tgz
# cd Python-2.7.9
# ./configure
# make altinstall

# python2.7 -V
Python 2.7.9

#mv /usr/bin/python /usr/bin/python2.6
#ln -s /usr/local/bin/python2.7 /usr/bin/python

# because yum not suport python2.7

vi /usr/bin/yum

change 
#!/usr/bin/python
instead of
#!/usr/bin/python2.6
登录发表评论