gpt4 book ai didi

python - Cython在所有Python脚本上引发相同的运行时错误

转载 作者:行者123 更新时间:2023-12-03 08:29:05 24 4
gpt4 key购买 nike

我在Cygwin上没有问题就做了pip install --upgrade cython

但是,我尝试使用cython运行的每个脚本都会给我以下运行时错误和GINMF(Google不是我的 friend ):

$ 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_NT-6.1-WOW64 DellIns14 1.7.33-2(0.280/5/3)2014-11-13 15:45 i686 Cygwin
  • 最佳答案

    OP假设cython在实际生成c文件(该文件必须为compiled and linked)时将生成编译输出。

    关于python - Cython在所有Python脚本上引发相同的运行时错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28703189/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com