当我从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!
非常感谢任何帮助。 提前谢谢。
答案 0 :(得分:0)
我认为错误是setup.py
文件的路径与您的python包依赖文件的路径不匹配。
您可以使用这种方式安装它,而不是使用源代码。
sudo su
your password
pip install statsmodels