Usually when you run into a headers issue it means you installed from a package. Not sure which package manager Ubuntu uses, but you should be able to find a python-devel (or something like that) package that will have the header files in it. They aren't included in the standard package because they are only necessary when you try to compile an app that requires them, thus reducing the amount of diskspace and download size of base packages and allowing you to cherry pick which devel/header packages you need.
First of all, you shouldn't be having to compile pygtk. You can just use "sudo apt-get install python-gtk2". In Ubuntu Feisty, at least, this will get you pygtk 2.10.4. If you really want to compile it, though, or you want that version and you're on too old a version of Ubuntu, fix the error with "sudo apt-get install python-dev".
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.