【发布时间】:2017-08-20 05:05:56
【问题描述】:
我正在尝试在我的虚拟环境中安装一些东西,它使用 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 错误。
有人知道我该如何解决这个问题吗?非常感谢所有帮助。
【问题讨论】:
-
"gcc failed with exit status 1" 是症状,而不是原因。
-
您好,谢谢您的回复。正如我在帖子中所描述的,我认为原因是缺少 python3-devel 包。
-
好的,但问题中没有任何内容支持这一点。
-
没错,添加了我的来源。
-
作为旁注,我会推荐 Red Hat Software Collections 来安装 Python3 而不是 EPEL——你会得到官方的支持。见access.redhat.com/solutions/472793
标签: python-3.x installation virtualenv rhel7