So I downloaded Cygwin to build Matplotlib on Windows. Upon running
python setup.py build
I get a message saying Python.h cannot be found (pastebin).
Looking in /usr/include/python2.7, I can clearly see Python.h exists.
When I do:
gcc -print-search-dirs
I get paths to some Haskell folder outside of the cygwin installation folder. Full output here.
Python.h is nothing but a header file. It is used by gcc to build applications. You need to install a package called python-dev. This package includes header files, a static library and development tools for building Python modules, extending the Python interpreter or embedding Python in applications.
python-dev is the package that contains the header files for the Python C API, which is used by lxml because it includes Python C extensions for high performance.
in cygwin make sure the python-devel package is installed:
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