[英]Can't install python-dev on centos 6.5
Can't install python-dev on centos 6.5.无法在 centos 6.5 上安装 python-dev。 Yum says "No package python-dev available.". Yum 说“没有可用的包 python-dev。”。 No graphical solutions please.请不要图形解决方案。
On CentOS, the python development libraries are under the name python-devel
, not python-dev
. 在CentOS上,python开发库名为python-devel
,而不是python-dev
。
So you should use 所以你应该使用
sudo yum install python-devel
to install them on your CentOS system. 将它们安装在CentOS系统上。
You can search the repositories available to you using the yum search xxxxx
command, where xxxxx is the name or part of the name of the package you are looking for. 您可以使用yum search xxxxx
命令yum search xxxxx
可用的存储库,其中xxxxx是您要查找的软件包名称或名称的一部分。
Further, you may need to specify the architecture (such as python-devel.x86_64), although in my experience yum will automatically install the package that is appropriate for your system. 此外,您可能需要指定体系结构(例如python-devel.x86_64),尽管根据我的经验,yum将自动安装适合您系统的包。 Again, yum search
will show you what is available in the repositories you currently have installed/enabled. 同样, yum search
将显示您当前已安装/启用的存储库中的可用内容。
Did you try 你试过了吗
yum groupinstall -y 'development tools'
Did you try to download the RPM package and install it? 您是否尝试下载RPM软件包并进行安装?
Did you try to install python-pip then issue pip install python-dev
? 您是否尝试安装python-pip然后发出pip install python-dev
?
对于现在想要安装 python-devel 的任何人,您可以使用yum install platform-python-devel.x86_64
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.