首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >安装python3-devel时出现事务检查错误

安装python3-devel时出现事务检查错误
EN

Stack Overflow用户
提问于 2019-09-19 16:53:33
回答 2查看 879关注 0票数 1

我正尝试在centos7上使用virtualenv进行pip3 install uwsgi,但它显示

代码语言:javascript
运行
复制
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,结果显示

代码语言:javascript
运行
复制
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’,它显示

代码语言:javascript
运行
复制
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没有解决任何问题

你知道该怎么继续前进吗?

EN

回答 2

Stack Overflow用户

发布于 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...

票数 0
EN

Stack Overflow用户

发布于 2019-11-27 14:06:26

我也有同样的问题。当我将epel repo添加到32位CentOS7时,就会发生这种情况。因为从CentOS7开始就没有32位的epel了,所以我不得不在我的CentOS7中添加了32位的CentOS6 epel。我现在得到了python3.6,但是不能通过yum得到python3-devel。也许你可以在禁用其他回购后获得它?

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/58007246

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档