这是一个创建于 2398 天前的主题,其中的信息可能已经有所发展或是发生改变。
Error compiling Cython file:
------------------------------------------------------------
...
Coefficient in front of B.
"""
cdef int nrows2 = A.shape[0]**2
cdef int inc = 1
zaxpy(&nrows2, &alpha, &B[0,0], &inc, &A[0,0], &inc)
^
------------------------------------------------------------
qutip/cy/brtools.pyx:98:51: Converting to Python object not allowed without gil
Traceback (most recent call last):
File "setup.py", line 245, in <module>
ext_modules = cythonize(EXT_MODULES),
File "/usr/lib64/python2.7/site-packages/Cython/Build/Dependencies.py", line 1026, in cythonize
cythonize_one(*args)
File "/usr/lib64/python2.7/site-packages/Cython/Build/Dependencies.py", line 1146, in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: qutip/cy/brtools.pyx
在谷歌上搜了一下,说是要将 Cython 更新到最新版本,然后我看了下,已经是最新版本 0.28.2 了。有大神遇到过这样的问题吗?
|
|
1
shootsoft 2018-05-03 19:28:19 +08:00 via iPhone
已经是最新版了,没准你看的帖子指的是前一个版本🤔
|