RuntimeError:运行cythonize失败! Statsmodels安装

时间:2017-12-04 02:55:45

标签: python python-3.x machine-learning cython statsmodels

当我从python setup.py中的Statsmodels的源克隆运行cmd时,它会抛出错误,尽管安装的Cython是cython.version' 0.27.3&# 39;

statsmodels-master>python setup.py install
Cythonizing sources
Processing statsmodels\nonparametric\linbin.pyx
Fatal error in launcher: Unable to create process using '"'
Traceback (most recent call last):
  File "C:\Users\Test\statsmodels-master\tools\cythonize.py", line 215, in <module>
    main()
  File "C:\Users\Test\statsmodels-master\tools\cythonize.py", line 211, in main
    find_process_files(root_dir)
  File "C:\Users\Test\statsmodels-master\tools\cythonize.py", line 203, in find_process_files
    process(cur_dir, fromfile, tofile, function, hash_db)
  File "C:\Users\Test\statsmodels-master\tools\cythonize.py", line 174, in process
    processor_function(fromfile, tofile)
  File "C:\Users\Test\statsmodels-master\tools\cythonize.py", line 72, in process_pyx
    raise Exception('Cython failed')
Exception: Cython failed
Traceback (most recent call last):
  File "setup.py", line 546, in <module>
    generate_cython()
  File "setup.py", line 90, in generate_cython
    raise RuntimeError("Running cythonize failed!")
RuntimeError: Running cythonize failed!

非常感谢任何帮助。 提前谢谢。

1 个答案:

答案 0 :(得分:0)

我认为错误是setup.py文件的路径与您的python包依赖文件的路径不匹配。

您可以使用这种方式安装它,而不是使用源代码。

sudo su
your password
pip install statsmodels