建立Scipy错误cythonize失败 [英] build scipy error cythonize failed
本文介绍了建立Scipy错误cythonize失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试构建scipy并收到RuntimeError:
I'm trying to build scipy and I get a RuntimeError:
$sudo python setup.py build
Processing scipy/cluster/_vq_rewrite.pyx
Traceback (most recent call last):
File "tools/cythonize.py", line 172, in <module>
main()
File "tools/cythonize.py", line 168, in main
find_process_files(root_dir)
File "tools/cythonize.py", line 160, in find_process_files
process(cur_dir, fromfile, tofile, function, hash_db)
File "tools/cythonize.py", line 137, in process
processor_function(fromfile, tofile)
File "tools/cythonize.py", line 66, in process_pyx
raise OSError('Cython needs to be installed')
OSError: Cython needs to be installed
Traceback (most recent call last):
File "setup.py", line 209, in <module>
setup_package()
File "setup.py", line 202, in setup_package
generate_cython()
File "setup.py", line 147, in generate_cython
raise RuntimeError("Running cythonize failed!")
RuntimeError: Running cythonize failed!
提供cython来纠正此错误的方法有哪些?
What are the ways to provide cython to remedy this error?
推荐答案
Python setuptools解决了该问题。
Python setuptools solved the problem.
http://docs.cython.org/src/quickstart/install.html
easy_install cython
或 pip install cython
这篇关于建立Scipy错误cythonize失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文