centos系统下怎样在原有的python2.6版本下安装python2.7版本

2022-08-19 社会 58阅读
cd /usr/local/src
wget http://www.python.org/ftp/python/2.7.6/Python-2.7.6.tgz
tar zxvf Python-2.7.6.tgz
cd Python-2.7.6
./configure
make & make install

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

sed -i 's/bin\/python/bin\/python2.6.6/' /usr/bin/yum
声明:你问我答网所有作品(图文、音视频)均由用户自行上传分享,仅供网友学习交流。若您的权利被侵害,请联系fangmu6661024@163.com