【发布时间】:2019-12-21 06:00:58
【问题描述】:
尝试在 RHEL7 上安装 python36-devel,结果报错
尝试解决错误中所述的依赖关系,但没有帮助。
也试过这个How to install python3-devel on red hat 7,结果也是同样的错误
yum install python36-devel
错误:
Loaded plugins: amazon-id, rhui-lb, search-disabled-repos
Resolving Dependencies
--> Running transaction check
---> Package python36-devel.x86_64 0:3.6.8-1.el7 will be installed
--> Processing Dependency: python36 = 3.6.8-1.el7 for package: python36-devel-3.6.8-1.el7.x86_64
Package python36-3.6.8-1.el7.x86_64 is obsoleted by python3-3.6.8-10.el7.x86_64 which is already installed
--> Processing Dependency: python36-libs(x86-64) = 3.6.8-1.el7 for package: python36-devel-3.6.8-1.el7.x86_64
Package python36-libs-3.6.8-1.el7.x86_64 is obsoleted by python3-libs-3.6.8-10.el7.x86_64 which is already installed
--> Finished Dependency Resolution
Error: Package: python36-devel-3.6.8-1.el7.x86_64 (epel)
Requires: python36-libs(x86-64) = 3.6.8-1.el7
Installed: python3-libs-3.6.8-10.el7.x86_64 (@rhui-REGION-rhel-server-releases)
python36-libs(x86-64) = 3.6.8-10.el7
Available: python36-libs-3.6.8-1.el7.x86_64 (epel)
python36-libs(x86-64) = 3.6.8-1.el7
Error: Package: python36-devel-3.6.8-1.el7.x86_64 (epel)
Requires: python36 = 3.6.8-1.el7
Installed: python3-3.6.8-10.el7.x86_64 (@rhui-REGION-rhel-server-releases)
python36 = 3.6.8-10.el7
Available: python36-3.6.8-1.el7.x86_64 (epel)
python36 = 3.6.8-1.el7
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
【问题讨论】:
-
我也遇到了。
-
快速浏览一下似乎是
@rhui-REGION-rhel-server-releases和epel存储库之间的包冲突。尝试禁用@rhui-REGION-rhel-server-releases看看是否可以解决问题。 -
@user3788685 当它说
python3-3.6.8-10.el7.x86_64 which is already installed时,是否意味着我们已经在系统中拥有了开发工具? -
是的 - 执行
rpm -q python3并且它应该返回相同的内容 - 这意味着您已安装该版本。但这只是 python 的基本版本——不是开发头文件。 -
当我从 epel repo 询问 yum 时,我得到了
python36和python36-devel。唉,我无法在我正在检查的机器上安装。
标签: python-3.6 yum rhel7