Cython在所有Python脚本上抛出相同的运行时错误

2024-04-25 19:49:18 发布

您现在位置:Python中文网/ 问答频道 /正文

我在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)'

有人知道发生了什么吗?你知道吗


我的环境:

  • Cython版本0.22
  • CYGWIN\u NT-6.1-WOW64 DellIns14 1.7.33-2(0.280/5/3)2014-11-13 15:45 i686 CYGWIN

Tags: installpippy脚本hello错误googleline