I want to compile a Python module on my Linux system, but some files are missing. Why?
Most packaged versions of Python don’t include the /usr/lib/python2.x/config/ directory, which contains various files required for compiling Python extensions.
For Red Hat, install the python-devel RPM to get the necessary files.
For Debian, run:
apt-get install python-dev.