PIP install error

Sometimes we will get the below error while installing python modules using pip.

10:20: fatal error: Python.h: No such file or directory

To resolve this error, we need to install python-dev package.

For Ubuntu, the command is

#apt-get install python-dev


#apt-get install python3-dev

For Centos, command is

#yum install python-devel


#yum install python3-devel


Leave a Reply