如何在Red Hat 7上安装python3-devel [英] How to install python3-devel on red hat 7
问题描述
我正在尝试在使用anaconda python 3.6的虚拟环境中安装某些东西.我得到the gcc failed with exit status 1
,提示缺少正确的python3-devel软件包,如
I am trying to install something in my virtual environment, which uses anaconda python 3.6. I get the gcc failed with exit status 1
, hinting on the absence of the right python3-devel package, as described in 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
错误.
To fix the error, I tried to install the python3-devel package on my server running RHEL 7.3.
I did yum install python3-devel
, but got a 'package not found'
error. Then I found https://serverfault.com/questions/710354/repository-for-python3-devel-on-centos-7, which hints to the python34-devel package in the EPEL repository. I installed it using yum, but upon trying to install something in my virtual environment, I still get the gcc failed with exit status 1
error.
有人知道我该如何解决吗?所有帮助将不胜感激.
Does someone know how I can fix this? All help would be much apprechiated.
推荐答案
在yum中搜索包,请使用以下命令:
Search for the package in yum , use the following command:
yum search python3 | grep devel
它将列出所有可用的devel软件包.结果会像这样
It will list all the available devel packages. The result will be somewhat like this
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,请执行以下操作
Then you can choose the package you want to install from the list , suppose if you want to to install python3-devel , execute the following
yum install -y python3-devel.x86_64
这篇关于如何在Red Hat 7上安装python3-devel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!