Click here to Skip to main content
15,891,951 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
By typing "which python" I confirmed that I have python in my environment. The version my python is 2.6.5. However when I include Python.h (#include <python.h>) I got the error:

# gcc -o EmbPythonInC_1.exe EmbPythonInC_1.c
EmbPythonInC_1.c:2:20: fatal error: Python.h: No such file or directory
compilation terminated.

Thanks,

Tom
Posted
Comments
Sergey Alexandrovich Kryukov 27-Dec-12 15:34pm    
Well, where are your python .h files? This is as simple as that. And I seriously doubt your Python library is really EmbPythonInC_1.exe... :-)
—SA

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900