在运行如下安装命令时:
pip3 install numpy
报错:
RuntimeError: Running cythonize failed!
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip- build-j1mbj8zb/numpy/setup.py';f=getattr(tokenize, 'open', open)(__file__);code= f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-26dm0w_y-record/install-record.txt --single-version-ex ternally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pi p-build-j1mbj8zb/numpy/
解决方案:
1)网上的帖子第一个解决方案:(我没试)
sudo su
your password
pip install statsmodels
2)本人经过仔细阅读错误提醒,发现是缺少cython这个库才报错,安装即可:
pip3 install cython