python-3.x - 如何在Red Hat 7上安装python3-devel

标签 python-3.x installation virtualenv rhel7

我正在尝试在使用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/

相关文章:

python - 不使用 max() 打印列表中的最大数字

python - 如何在 Windows64 上为 Python 3.5 安装 pydotplus

python - 向后打印阶乘?

python - virtualenv 不创建 PYTHONPATH/pip 安装包不起作用

python - 使用 virtualenv 和特定 Python 版本有困难吗?

python - 将 Django 从 1.1 升级到 1.2

Python版本/导入困惑

python setup.py 配置在自定义目录中安装文件

Ubuntu apt-get 从不存在的文件安装错误

android - 无法在 Mac 上安装 Android SDK