无法在centos 6.5上安装python-dev [英] Can't install python-dev on centos 6.5

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

问题描述

无法在centos 6.5上安装python-dev。 Yum说没有软件包python-dev可用。没有图形解决方案。

Can't install python-dev on centos 6.5. Yum says "No package python-dev available.". No graphical solutions please.

推荐答案

在CentOS上,python开发库名为 python-devel ,不是 python-dev

On CentOS, the python development libraries are under the name python-devel, not python-dev.

使用 sudo yum安装python-devel 将其安装在您的CentOS系统上。

Use sudo yum install python-devel to install them on your CentOS system.

您可以使用 yum search xxxxx 命令,其中xxxxx是您要查找的软件包名称的一部分。

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.

指定架构(如python-devel.x86_64),虽然在我的经验中,yum会自动安装适合您的系统的包。再次, yum search 将显示您当前安装/启用的存储库中可用的内容。

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. Again, yum search will show you what is available in the repositories you currently have installed/enabled.

这篇关于无法在centos 6.5上安装python-dev的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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