我正在尝试在我的虚拟环境中安装一些东西,它使用 anaconda python 3.6。我得到 the gcc failed with exit status 1
,提示缺少正确的 python3-devel 包,如 error: command ‘gcc’ failed with exit status 1 while installing eventlet 中所述。
为了修复这个错误,我尝试在运行 RHEL 7.3 的服务器上安装 python3-devel 包。我做了 yum install python3-devel
,但得到了 'package not found'
错误。然后我找到了 https://serverfault.com/questions/710354/repository-for-python3-devel-on-centos-7 ,它暗示了 EPEL 存储库中的 python34-devel 包。我使用 yum 安装它,但在尝试在我的虚拟环境中安装某些东西时,我仍然收到 the gcc failed with exit status 1
错误。
有人知道我该如何解决这个问题吗?所有帮助将不胜感激。
原文由 sequence_hard 发布,翻译遵循 CC BY-SA 4.0 许可协议
在 yum 中搜索包,使用以下命令:
它将列出所有可用的开发包。结果会有点像这样
”`