What is the equivalent of
numpy.get_include()
as used here for Python, giving me the path to the directory where the Python header files are located?
The header files are typically installed with Python. On Unix, these are located in the directories prefix/include/pythonversion/ and exec_prefix/include/pythonversion/ , where prefix and exec_prefix are defined by the corresponding parameters to Python's configure script and version is '%d. %d' % sys.
The header files are in include directory.
You can find the include dir using the distutils.sysconfig module
from distutils.sysconfig import get_python_inc
get_python_inc() #this gives the include dir
You can read about it here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With