Python 使用pip在Fedora 19上安装Numpy
我尝试使用Python 使用pip在Fedora 19上安装Numpy,python,numpy,pip,fedora,Python,Numpy,Pip,Fedora,我尝试使用pip在Fedora19上安装Python2.7Numpy模块: 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. ---------------------------------
pip
在Fedora19上安装Python2.7Numpy
模块:
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
我怎样才能解决这个问题
谢谢。需要安装python的开发版本:
yum install python-devel
然后它就会完美地工作。就因为你没有说,你试过用yum安装python-devel吗yum安装python-devel'
sudo yum install python-devel