import numpy
import pyximport
pyximport.install(setup_args={"script_args":["--compiler=mingw32"],
"include_dirs":numpy.get_include()},
reload_support=True)
import my_pyx_module
print my_pyx_module.some_function(...)
numpy/arrayobject.h”: No such file or directory
原文:https://www.cnblogs.com/MY0213/p/9510175.html