Centos6完美升级Python 2.6.6到Python 2.7.8

发布于 分类 Linux

在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 --

本文标题: Centos6完美升级Python 2.6.6到Python 2.7.8

本文地址: https://seonoco.com/blog/centos6-upgrade-python-2.6.6-to-python-2.7.8

本页面显示内容已针对移动端进行优化,点击查看完整版本