在CentOS中安装python 2.6 [英] Install python 2.6 in CentOS

查看:237
本文介绍了在CentOS中安装python 2.6的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个shell运行CentOS。



对于一个我正在做的项目,我需要python 2.5+,但centOS基本上依赖于2.4。 p>

如果你升级到2.5,很多事情都会中断。



安装2.5单独从2.4,但我不知道如何做到。到目前为止,我已经下载了源文件包,解压它,并做了一个 ./ configure --prefix = / opt 这是我想要的结束。我现在可以只是 make,make install 吗?

解决方案

您还可以使用 EPEL-repository ,然后执行 sudo yum install python26 安装python 2.6


I have a shell that runs CentOS.

For a project I'm doing, I need python 2.5+, but centOS is pretty dependent on 2.4.

From what I've read, a number of things will break if you upgrade to 2.5.

I want to install 2.5 separately from 2.4, but I'm not sure how to do it. So far I've downloaded the source tarball, untarred it, and did a ./configure --prefix=/opt which is where I want it to end up. Can I now just make, make install ? Or is there more?

解决方案

You could also use the EPEL-repository, and then do sudo yum install python26 to install python 2.6

这篇关于在CentOS中安装python 2.6的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆