I was struggling due to this problem for two days now and got the solution just now so thought I will share it
with you all; as I don’t want anyone else to land up in trouble as i did so I am using Hardy and was trying to build subvertpy from source as the package was not available for same.
The problem occurs due to absence of Python development headers as many python modules have dependency onĀ Python development headers to compile.
Solution is to install development headers using package manager; open the terminal and issue the following commands
and select the package that matches your installation as in my case it is python2.5-dev; issue the following command to install it
This will install development headers in /usr/include/python2.5 and now you can build your python module successfully.
Filed under: OpenSource
Trackback Uri


Thank you very much!
I was upgrading twisted to 9.0.0 with easy_install utility in Ubuntu 9.0 and came across the same problem.
Installing python2.6-dev solved it.
I am glad that it helped you.
Very helpful, thanks!
I am Suse LINUX (11.1)
And when I am including
#include
its not able to find this library.
The above help does’nt work in SUSE LINUX.
Please help .
Thanks
Shariq
I am Suse LINUX (11.1)
And when I am including
#include<Python.h>
its not able to find this library.
The above help does\’nt work in SUSE LINUX.
Please help .
Thanks
Shariq
I am Suse LINUX (11.1)
And when I am including
#include<Python.h>
its not able to find this library.
The above help does\\\’nt work in SUSE LINUX.
Please help .
Thanks
Shariq
I am Suse LINUX (11.1)
And when I am including
#include&lt;Python.h&gt;
its not able to find this library.
The above help does\\\\\\\’nt work in SUSE LINUX.
Please help .
Thanks
Shariq
I am Suse LINUX (11.1)
And when I am including
#include Python.h
its not able to find this library.
The above help does not work in SUSE LINUX.
Please help .
Thanks
Shariq
Do you have the python-devel package installed on your machine?
Thanks so much!