【问题标题】:cython compilation error 'is not a type identifier'cython 编译错误'不是类型标识符'
【发布时间】: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 的问题,但我已经安装了源代码中要求的正确版本。

【问题讨论】:

    标签: python gcc types cython


    【解决方案1】:

    我查看了包 https://pypi.python.org/pypi/wrenlab/0.1.2 并且代码没有定义 Strand 也没有导入或包含代码。奇怪的是它在某些计算机上完全有效。联系代码作者以询问其状态(测试版/工作/Python 版本等)。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-31
      • 1970-01-01
      • 2019-04-26
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多