Friday, April 8, 2022

[SOLVED] Installing Numpy on Fedora 19 with pip

Issue

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.


Solution

sudo yum install python-devel

And then it shall work flawlessly.



Answered By - alandarev
Answer Checked By - Candace Johnson (WPSolving Volunteer)