【问题标题】:Error: Package: python-devel-2.6.6-64.el6.x86_64 Requires: python-libs(x86-64) = 2.6.6-64.el6 found: python-libs-2.6.6-66.el6_8.x86_64错误:包:python-devel-2.6.6-64.el6.x86_64 要求:python-libs(x86-64) = 2.6.6-64.el6 找到:python-libs-2.6.6-66.el6_8.x86_64
【发布时间】:2017-11-13 18:36:25
【问题描述】:

我在运行 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

根据报错- Requires: python-libs(x86-64) = 2.6.6-64.el6 but installed is- python-libs(x86-64) = 2.6.6-66.el6_8,那怎么能我改了吗?

【问题讨论】:

标签: python linux bash rhel


【解决方案1】:

您的rhel-6-server-rpms频道不是正式版。当前的rhel-6-server-rpms 频道内容实际上具有版本为 2.6.6-66.el6_8.x86_64 的 Python,因此不会出现问题。您需要查看yum repolist -v 输出并仔细检查您使用的是官方存储库。 (您需要有效的 Red Hat Enterprise Linux 订阅才能访问这些存储库。)

【讨论】:

    猜你喜欢
    • 2017-12-24
    • 2013-03-14
    • 2016-01-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-08-15
    相关资源
    最近更新 更多