【发布时间】:2017-09-22 01:12:17
【问题描述】:
我一直在尝试 pip install 一个包,它返回以下错误:
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 的问题,但我已经安装了源代码中要求的正确版本。
【问题讨论】: