【发布时间】:2013-09-27 12:07:04
【问题描述】:
我尝试使用 pip 在 Fedora 19 上安装 Python 2.7 Numpy 模块:
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
我该如何解决这个问题?
谢谢。
【问题讨论】:
-
就因为你没说,你试过用yum安装python-devel吗? 'yum install python-devel'