简体   繁体   中英

Installing Numpy on Fedora 19 with pip

I tried to install Python 2.7 Numpy module on Fedora 19 using pip :

sudo pip install numpy

But I have the following error:

"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

How can I fix that?

Thanks.

sudo yum install python-devel

然后它将完美无缺地工作。

需要安装python的开发版本:

yum install python-devel

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM