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

or

#apt-get install python3-dev

For Centos, command is

#yum install python-devel

or

#yum install python3-devel

 

Leave a Reply

Your email address will not be published. Required fields are marked *