[Tutor] environment settings

D-Man dsh8290@rit.edu
Mon, 9 Jul 2001 17:06:49 -0400


On Mon, Jul 09, 2001 at 01:25:18PM -0700, Robin Kuruvila wrote:
| hi all,
| I am writing a small C Extension Module. I've included <Python.h> in the
| program. When i run the program it says ' Python.h: No such file or
| directory' , am not sure how to set the environment.

Do you have the python headers installed on your system?  If so they
either need to be in the system include path or you need to include it
when you invoke the compiler.  You haven't mentioned what OS or what
compiler you're using.  If you are using gcc (Unix or cygwin) use the
-I option to add directories to the include path.  For example, if the
headers are in ~/Python_headers use  'gcc -I ~/Python_headers
my_app.c'.

-D