【发布时间】: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,那怎么能我改了吗?
【问题讨论】:
-
Stack Overflow 是一个编程和开发问题的网站。这个问题似乎离题了,因为它与编程或开发无关。请参阅帮助中心的What topics can I ask about here。也许Super User 或Unix & Linux Stack Exchange 会是一个更好的提问地点。
-
检查您下载的
cffi模块是否与您的python版本兼容。