Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
相当于什么
numpy.get_include()
在这里用于 Python,给我 Python 头文件所在目录的路径?
头文件位于包含目录中。
您可以使用 distutils.sysconfig 模块找到包含目录
from distutils.sysconfig import get_python_inc get_python_inc() #this gives the include dir
你可以在这里阅读