首页 > 程序开发 > Web开发 > Python >

centos下升级python

2012-02-09

wget http://www.python.org/ftp/python/2.6/Python-2.6.tgztar zxvf Python-2.6.tgzcd Python-2.6./configure --enable-ipv6 --prefix=/optmakemake installmv /usr/bin/python /usr/bin/python.bakln...

wget Python-2.6.tgz">http://www.python.org/ftp/python/2.6/Python-2.6.tgz
tar zxvf Python-2.6.tgz
cd Python-2.6
./configure --enable-ipv6 --prefix=/opt
make
make install
mv /usr/bin/python /usr/bin/python.bak
ln -s /opt/bin/python2.6 /usr/bin/python

摘自 任宝永--renbaoyong --商业价值

相关文章
最新文章
热点推荐