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

查看:41
本文介绍了无法在 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 install python-devel

将它们安装在您的 CentOS 系统上.

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天全站免登陆