简体   繁体   English

如何为2.6版本安装python-devel?

[英]how to install python-devel for 2.6 version?

i use centos 5.4 ,the default python version is python2.4,so i use the python2.6.2.tar.gz compile a python 2.6 version 我使用centos 5.4,默认的python版本是python2.4,所以我使用python2.6.2.tar.gz编译一个python 2.6版本

and now i want to intstall board review project it need install python-devel package,if i use yum install python-devel,it will install the python2.4 relevent version python-devel, 现在我想安装板评论项目它需要安装python-devel包,如果我使用yum install python-devel,它将安装python2.4相关版本python-devel,

how could i get a python2.6 version devel package install? 我怎么能得到一个python2.6版本开发包安装?

If you enable the EPEL repo, you can install python 2.6 and the devel headers using yum: 如果启用EPEL repo,则可以使用yum安装python 2.6和devel头:

# yum install python26
# yum install python26-devel

These packages won't then conflict with the python 2.4 ones. 这些包不会与python 2.4的包冲突。

Looks like it is more system administration than it should be required. 看起来它比应该要求的系统管理更多。 Here are some helpful pointers: 以下是一些有用的指示:

  1. http://blog.milford.io/2010/08/new-method-for-installing-python-2-6-4-with-mysql-python-on-centos-5-5/ http://blog.milford.io/2010/08/new-method-for-installing-python-2-6-4-with-mysql-python-on-centos-5-5/
  2. How to install python2.6-devel package under CentOs 5 如何在CentOs 5下安装python2.6-devel软件包

However, if you are just installing reviewboard software, you can go to http://www.python.org download the package, do a ./configure, make and make altinstall to a local version and then point that interpreter to your reviewboard download's setup.py file. 但是,如果您只是安装评论板软件,可以访问http://www.python.org下载软件包,执行./configure,make和make altinstall到本地版本,然后将该解释器指向您的评论板下载setup.py文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM