Linux下升级python
1 解压Python-2.7.tgz
tar-zxvf Python-2.7.tgz
2 进入Python-2.7的解压目录下
3 执行以下命令安装
./configure --prefix=/usr/local/python27
make
make install
4 备份以前版本的python
mv /usr/bin/python /usr/bin/python2.6
5 建立软链接
ln -s /usr/local/python27/bin/python /usr/bin/python
ฅ平平庸庸的普通人ฅ