我在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)'
有人知道发生了什么吗?你知道吗
我的环境:
OP的作用是假设cython将生成编译后的输出,而实际生成的
c
文件需要是compiled and linked。你知道吗相关问题 更多 >
编程相关推荐