我正在尝试在使用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
错误。
有人知道我该如何解决吗?所有帮助将不胜感激。
最佳答案
在yum中搜索包,请使用以下命令:
yum search python3 | grep devel
它将列出所有可用的开发包。结果会像这样
python3-cairo-devel.x86_64 : Libraries and headers for python3-cairo python3-devel.x86_64 : Libraries and header files needed for Python 3 : development python34-devel.x86_64 : Libraries and header files needed for Python 3 : development
然后,您可以从列表中选择要安装的软件包,假设您要安装python3-devel,请执行以下命令
yum install -y python3-devel.x86_64
关于python-3.x - 如何在Red Hat 7上安装python3-devel,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43047284/