When I compile my program with gcc it doesn't work...

Error:
[error]run.c:4:10: fatal error: Python.h: No such file or directory 
[error] include "Python.h"           ^~~~~~~~~~ 
[error]compilation terminated. 
[error]Cmd.exe exited with code '1'.

My setup code:

from distutils.core import setup
from Cython.Build import cythonize
from Cython.Compiler import Options
Options.embed = True
Options.embed = "run"
setup(
    ext_modules = cythonize("run.pyx")
)

0 Answers