源码升级安装python

1.下载 python:

2.编译安装
sudo mkdir /usr/local/python27
sudo ./configure --prefix=/usr/local/python27
sudo make
sudo make install

3.升级连接版本

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

 4.刷新

source /etc/profile

yum clean all

yum makecache

 

 

posted @ 2016-08-22 15:40  侠之大者kamil  阅读(283)  评论(0编辑  收藏  举报