CentOS6.3升级python到2.7.3

1、安装gcc

yum -y install gcc

2、下载Python-2.7.3

wget http://python.org/ftp/python/2.7,3/Python-2.7.3.tar.bz2

3、解压缩

tar -jxvf Python-2.7.3.tar.bz2

4、进入

cd Python-2.7.3

5、安装

./configuremake all           make installmake cleanmake distclean

6、建立软连接

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

7、让yum正常

nano /usr/bin/yum#!/usr/bin/python2.6.6
CentOS6.3升级python到2.7.3

相关文章:

你感兴趣的文章:

标签云: