[Tutor] [tutor] Calling python from a c program

Varsha Purohit varsha.purohit at gmail.com
Sun Jan 20 10:18:14 CET 2008

   I just read about how to call python from a c program. This is the
function for that

int main()
    PyRun_SampleString("print 76");

    return 0;

But i am getting an error of header file. python.h not found. Can anybody
tell me where can i get this header file ?? And how can i call the python
interpreter screen from c program ??

Varsha Purohit,
Graduate Student
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20080120/a85c6ade/attachment.htm 

More information about the Tutor mailing list