我在Cygwin上做了一个没有问题的pip install --upgrade cython。
但是,我尝试使用cython运行的每个脚本都会给出以下运行时错误,以及GINMF (Google不是我的朋友):
$ cat /tmp/hello_cython.py
print("hello cython")
$ cython /tmp/hello_cython.py -o /tmp/hello_cython.exe
$ /tmp/hello_cython.exe
/tmp/hello_cython.exe: line 1: /bin: is a directory
/tmp/hello_cython.exe: line 65: syntax error near unexpected token `a+k,'
/tmp/hello_cython.exe: line 65: ` PyCode_New(a+k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)'有人知道怎么回事吗?
我的环境:
发布于 2015-02-26 11:25:38
OP是在假设cython实际生成一个c文件(需要是汇编和链接 )时生成一个编译的输出的情况下运行的。
https://stackoverflow.com/questions/28703189
复制相似问题