用Cython编译错误“不是一个类型标识符”
问题描述:
我一直在试图点子安装包被返回以下错误一会儿:用Cython编译错误“不是一个类型标识符”
Error compiling Cython file:
------------------------------------------------------------
...
return compare >= 0
cdef inline bint cmp(x, y):
return (x > y) - (x < y)
cdef Strand parse_strand(str strand):
^
------------------------------------------------------------
wrenlab/genome/types.pyx:35:5: 'Strand' is not a type identifier
...
#error Do not use this file, it is the result of a failed Cython compilation.
^
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
我能够使它在一些计算机上工作,而不是其他人。
有谁知道最好的地方开始会遇到这个问题吗?这似乎是一个与cython或gcc的问题,但我已经安装了源代码中请求的正确版本。
答
我看了看包https://pypi.python.org/pypi/wrenlab/0.1.2,代码没有定义Strand
,也没有导入或包含代码。奇怪的是它在一些计算机上可以正常工作。联系代码的作者来询问它的状态(Python的beta/working/version等)。