2013-03-02 42 views
26

我試圖建立SciPy的,我也得到拋出一個RuntimeError:建SciPy的錯誤cythonize失敗

$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糾正這種錯誤的方法呢?

回答