與PIP

2013-09-27 66 views
3

在Fedora 19上安裝NumPy的我試圖在Fedora 19安裝Python 2.7 Numpy模塊使用pip與PIP

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 

我怎樣才能解決這個問題?

謝謝。

+0

僅僅因爲你沒有說,你是否嘗試過用yum安裝python-devel? 'yum install python-devel' – Othrayte

回答

4
sudo yum install python-devel 

然後它要工作得很好。

3

的蟒蛇的發展需要的版本進行安裝:

yum install python-devel