Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm on cygwin 32bits and I'm trying to build PIL but when I run:

>>> python setup.py install

gcc exits with the following error message:
_imaging.c:75:20: fatal error: Python.h: No such file or directory

I did install the python-clang package and the file Python.h is indeed in one of the directories that appear after the -I switch on the gcc command line, namely:

-I/usr/include/python2.7

Why gcc can't find Python.h when the header file is exactly where it is supposed to be?

Thanks in advance
Sergio

share|improve this question
    
Without showing the failing gcc command, it's hard to say for sure. But PIL does build on Cygwin and is available in the Cygwin distribution as python-imaging. –  Yaakov Sep 16 '13 at 5:08

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.