相当于什么
numpy.get_include()
as used here http://docs.scipy.org/doc/numpy-1.6.0/user/c-info.python-as-glue.html?highlight=get_include#instant对于Python,给我Python头文件所在目录的路径吗?
头文件位于 include 目录中。
您可以使用 distutils.sysconfig 模块找到包含目录
from distutils.sysconfig import get_python_inc
get_python_inc() #this gives the include dir
你可以阅读相关内容here http://docs.python.org/2/distutils/setupscript.html#preprocessor-options
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)