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
我怎樣才能解決這個問題?
謝謝。
僅僅因爲你沒有說,你是否嘗試過用yum安裝python-devel? 'yum install python-devel' – Othrayte