This is an old copy of the Python FAQ. The information here may be outdated.

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.

CATEGORY: extending

 

A Django site. rendered by a django application. hosted by webfaction.