I'm compiling an external C package for my Blender 2.78a Python 3.5.
My compiling script looks like
from distutils.core import setup, Extension import numpy setup(name='_tifffile', ext_modules=[Extension('_tifffile', ['tifffile.c'], include_dirs=[n umpy.get_include()])])
Upon running it, I got
tifffile.c:71:20: fatal error: Python.h: No such file or directory #include "Python.h" ^ compilation terminated. error: command 'gcc' failed with exit status 1
I looked into
/blender-2.78a-linux-glibc211-x86_64/2.78/python/include/python3.5m/ and indeed didn't see
In general Python community, people suggest simply uninstalling the current Python and reinstalling the
dev version. I don't wanna hack the Python bundled with Blender like that.
How can I solve this problem?