Centos6完美升级Python 2.6.6到Python 2.7.8

NOCO发布于 分类 Linux

15天前 有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 --

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

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

本文是否有所帮助?
点赞 0
感谢支持
0
多谢反馈
评论 0
打赏

支持微信/支付宝

评论 ( 当前有 3 条评论 )

网友

最新最早
  • 文雨2017-04-01 22:54:48
    在国内这么安装速度好慢啊
  • noco @ 楼上 2017-04-01 23:45:16
    应该是官方SCL库默认是国外的地址吧!
  • noco @ noco 2017-04-02 00:32:00
    阿里云镜像仓库源
    https://segmentfault.com/a/1190000004193587
    如何在 CentOS 上启用 软件集 Software Collections(SCL)
    https://linux.cn/article-6776-1.html