如何在 Centos 6.5 上安装 python27-devel
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/23215535/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to install python27-devel on Centos 6.5
提问by Deadly
I have installed python 2.7.6 from source, but can't find how to install python-devel for python 2.7
我已经从源代码安装了 python 2.7.6,但找不到如何为 python 2.7 安装 python-devel
yum install python27-devel
doesn't work. How to install it?
不起作用。如何安装?
采纳答案by Sharif Mamun
Thanks for your feedback. First of all, if you try to run yum install python27-devel
, then you should get the message like this:
感谢您的反馈意见。首先,如果您尝试运行yum install python27-devel
,那么您应该得到如下消息:
No package python27-devel available
Then I followed this link,
然后我点击了这个链接,
yum search python | grep -i devel
This will show you that you have python-devel.x86_64
package available if your OS is a 64 bit OS. If I am correct, then the following command should work fine as shown in the accepted answer:
python-devel.x86_64
如果您的操作系统是 64 位操作系统,这将显示您有可用的软件包。如果我是正确的,那么以下命令应该可以正常工作,如已接受的答案所示:
yum install python-devel.x86_64
回答by D Nguyen
I run Centos 6.5 on Virtualbox and this command solved it.
我在 Virtualbox 上运行 Centos 6.5,这个命令解决了它。
# yum update
# yum install centos-release-SCL
# yum install python27