Centos6完美升级Python 2.6.6到Python 2.7.8
发布于 分类 Linux
17天前 有1个用户阅读过
在centos6下安装某些第三方软件,有时候会遇到某些软件必须要python2.7才能安装。我也没少折腾这玩意,但对于我这种最Low的Linux用户来说,编译安装不但麻烦,而且还会引起yum等其他问题,总之问题是一大堆。
今天在申请Let's Encrypt SSL证书时,找到了梦寐以求的简单的无缝升级方案!
来自外国朋友bertramn的方法 https://github.com/certbot/certbot/issues/1106
Below worked for me on RHEL 6 based clone
enable software collections
Centos e.g.
yum install centos-release-SCL
or Oracle Linux
install python 2.7 and scl utils
sudo yum update
sudo yum install scl-utils python27 python27-scldevel
enable python 2.7 for bash
scl enable python27 bash
然后再查看python版本,OK了
-- The End --
https://segmentfault.com/a/1190000004193587
如何在 CentOS 上启用 软件集 Software Collections(SCL)
https://linux.cn/article-6776-1.html