我正尝试在centos7上使用virtualenv进行pip3 install uwsgi
,但它显示
In file included from plugins/python/pyutils.c:1:0:
plugins/python/uwsgi_python.h:2:20: fatal error: Python.h: No such file or directory
#include <Python.h>
我尝试yum install python3-devel
,结果显示
Transaction check error:
file /etc/rpm/macros.ghc-srpm from install of redhat-rpm-config-9.1.0-88.el7.centos.noarch conflicts with file from package epel-release-6-8.noarch
我尝试‘`yum update’,它显示
Error: Package: remi-release-6.10-1.el6.remi.noarch (installed)
Need: epel-release = 6
Deleting: epel-release-6-8.noarch (installed)
Epel-release = 6-8
Updated by: epel-release-7-11.noarch (epel)
Epel-release = 7-11
You could try using --skip-broken to work around the problem
而--skip-broken
没有解决任何问题
你知道该怎么继续前进吗?
发布于 2019-09-19 17:33:19
在centos7上使用epel-release-6.8是很奇怪的。通常,您应该安装epel-release-7.*。
在我的centos7机器上,我安装了不包含/etc/rpm/macros.ghc-srpm
文件的epel-release-7.11。所以我建议升级epel-release...
发布于 2019-11-27 14:06:26
我也有同样的问题。当我将epel repo添加到32位CentOS7时,就会发生这种情况。因为从CentOS7开始就没有32位的epel了,所以我不得不在我的CentOS7中添加了32位的CentOS6 epel。我现在得到了python3.6,但是不能通过yum得到python3-devel。也许你可以在禁用其他回购后获得它?
https://stackoverflow.com/questions/58007246
复制相似问题