我正在尝试使用以下方式将python-devel
与yum
一起安装:
sudo yum install python-devel
并获得以下信息:
Resolving Dependencies
--> Running transaction check
---> Package python-devel.x86_64 0:2.7.5-76.el7 will be installed
--> Processing Dependency: python(x86-64) = 2.7.5-76.el7 for package: python-devel-2.7.5-76.el7.x86_64
--> Finished Dependency Resolution
Error: Package: python-devel-2.7.5-76.el7.x86_64 (base)
Requires: python(x86-64) = 2.7.5-76.el7
Installed: python-2.7.5-80.el7_6.x86_64 (@updates)
python(x86-64) = 2.7.5-80.el7_6
Available: python-2.7.5-68.el7.x86_64 (base)
python(x86-64) = 2.7.5-68.el7
Available: python-2.7.5-69.el7_5.x86_64 (updates)
python(x86-64) = 2.7.5-69.el7_5
Available: python-2.7.5-76.el7.x86_64 (base)
python(x86-64) = 2.7.5-76.el7
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
我的理解是它需要以下特定版本的python:python-2.7.5-76.el7.x86_64
,因此我尝试了:
sudo yum install python-2.7.5-76.el7.x86_64
但是输出:
Package matching python-2.7.5-76.el7.x86_64 already installed. Checking for update.
Nothing to do
我该怎么办?
答案 0 :(得分:1)
您可以在您的调用中添加 resolvedep 子命令,如果存在,它将具有yum resolve依赖项,然后您就可以安装yum
yum resolvedep python-devel
yum install python-devel
答案 1 :(得分:0)
您可以在后缀中指定arch,这对我有用:
sudo yum install python3-devel.x86_64
答案 2 :(得分:0)
rhel 7
yum --enablerepo=rhel-7-server-optional-rpms install python3-devel python3