Most of the time these are dependency-issues. You need to install
a package called python-dev. This package includes header files,
a static library and development tools for building Python
modules, extending the Python interpreter or embedding Python in
applications. When encountering this error please note before the
error it may say you are missing a package or header file — you
should find those and install them and verify if it works
For Python 2.x use:
$ sudo apt-get install python-dev
If you using
[python](http://net-informations.com/python/iq/default.htm)3, try
to replace python-dev with python3-dev
For a specific version of Python 3, replace x with the minor
version in
$ sudo apt-get install python3.x-dev