我尝试Numpy
使用pip
以下命令在Fedora 19上安装Python 2.7模块:
sudo pip install numpy
但是我有以下错误:
"Cannot compile 'Python.h'. Perhaps you need to "\
SystemError: Cannot compile 'Python.h'. Perhaps you need to install python-dev|python-devel.
----------------------------------------
Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-root/numpy
Storing complete log in /root/.pip/pip.log
我该如何解决?
谢谢。
sudo yum install python-devel
然后它将完美运行。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句