错误:软件包:python-devel-2.6.6-64.el6.x86_64 需要:python-libs(x86-6



我在运行python setup.py 安装cffi python模块时收到此错误。

c/cffi1_module.c: At top level:
c/cffi1_module.c:128: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
c/cffi1_module.c:150: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
c/_cffi_backend.c:6691: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘init_cffi_backend’
error: command 'gcc' failed with exit status 1
error: command 'gcc' failed with exit status 1, 
So this error on googling shows that I need to install python devel and on doing that I get the error below:
Error: Package: python-devel-2.6.6-64.el6.x86_64 (rhel-6-server-rpms)
           Requires: python-libs(x86-64) = 2.6.6-64.el6
           Installed: python-libs-2.6.6-66.el6_8.x86_64 (@rhel6-patch-channel-may2015)
               python-libs(x86-64) = 2.6.6-66.el6_8
根据错误 - 要求:python-libs(x86-64( = 2.6.6-64.el6,

但安装的是 - python-libs(x86-64( = 2.6.6-66.el6_8,那么我该如何更改它?

您的rhel-6-server-rpms频道不是正式版本。 当前rhel-6-server-rpms通道内容实际上在 2.6.6-66.el6_8.x86_64 版本中具有 Python,因此它不会发生问题。 您需要查看yum repolist -v输出并仔细检查您是否正在使用官方存储库。 (您需要有效的红帽企业 Linux 订阅才能访问这些存储库。

最新更新