源码升级安装python

it2022-05-06  0

1.下载 python:

https://www.python.org/downloads/release/python-2712/ 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

 

 

转载于:https://www.cnblogs.com/kamil/p/5795840.html


最新回复(0)