error of install numpy on linux red hat error of install numpy on linux red hat linux linux

error of install numpy on linux red hat


If you are in Ubuntu(e.g. Ubuntu 12.04), it is very easy,

sudo apt-get install python-numpy

or you can compile from source through pip(I think on RedHat almost the same):

sudo apt-get install python-dev  sudo apt-get install python-pip  pip install numpy


python-dev is not a python module. Actually it's "Header files, a static library and development tools for building Python modules, extending the Python interpreter or embedding Python in applications." You can install it through Synaptic Package Manager,Software Center or yum.


On CentOS, the python development libraries are under the name python-devel, not python-dev.

Use sudo yum install python-devel to install them on your CentOS system.