Fatal error: pyconfig.h: No such file or directory

Due to the nature of the program I am doing, I decided to try to inject python into it. So I downloaded the python source code and linked includes and libs . I put #include <Python.h> at the beginning of the code, and when I tried to compile it, it directly touched me Python.h and said: "Fatal error: pyconfig.h: There is no such file or directory." I know that the compiler is not mistaken because I checked the include folder and I could not find the file, so I do not know why this file is not. BTW: I got Python files by downloading the source code on the python website.

0
c ++ python
Feb 23 '15 at 13:53 on
source share
1 answer

You must configure or compile Python. When I open the pyconfig.h file in my Python installation, it starts with:

 /* pyconfig.h. Generated from pyconfig.h.in by configure. */ /* pyconfig.h.in. Generated from configure.ac by autoheader. */ 
+1
Feb 23 '15 at 16:19
source share



All Articles