升级python2.7

升级python2.7

 wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz

 

mkdir /usr/local/python27

./configure --prefix=/usr/local/python27

Make

Make install

 

mv /usr/bin/python /usr/bin/python_old

ln -s /usr/local/python27/bin/python2.7 /usr/bin/python

 

## 修改yum脚本,使其指向旧版本的python,已避免其无法运行

# vim /usr/bin/yum

#!/usr/bin/python_old  -->  #!/usr/bin/python2.6

posted @ 2017-10-15 21:35  两年十一时  阅读(136)  评论(0编辑  收藏  举报