Regarding Python.h

Christian Heimes lists at cheimes.de
Fri Feb 15 07:12:19 EST 2008


Raj kumar wrote:
> Hi to all,
> I'm new to Python.
> I am using python2.4.
> I have one application written in c language in which it includes python like
> 
> #include "Python.h"
> 
> But when i try to install it, i'm getting an error like
> Python.h: No such file or directory
> I feel gcc is unable to get the path for Python.h
> What should i do to get rid of this problem. If i have to add any path pls give me details of how to do that.

Most distributions don't install the Python development files. You have
to install a package named python-devel or python2.4-dev.

Christian




More information about the Python-list mailing list