1. 程式人生 > >升級python2.7

升級python2.7

configure 升級 腳本 config onf con -- yum www.

升級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

升級python2.7