How to install python27-devel on Centos 6.5

时间秒杀一切 提交于 2020-03-10 10:07:13

问题


I have installed python 2.7.6 from source, but can't find how to install python-devel for python 2.7

yum install python27-devel

doesn't work. How to install it?


回答1:


Thanks for your feedback. First of all, if you try to run yum install python27-devel, then you should get the message like this:

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:

yum  install python-devel.x86_64



回答2:


I run Centos 6.5 on Virtualbox and this command solved it.

# yum update
# yum install centos-release-SCL
# yum install python27


来源:https://stackoverflow.com/questions/23215535/how-to-install-python27-devel-on-centos-6-5

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!