[Image-SIG] PIL compilation error on linux

Ryan Mahoski mahoski at gmail.com
Fri Jul 1 21:05:38 CEST 2011


After running `python setup.py install` on Linux Mint I see a compilation
error (below). This occurs regardless of whether I try to install PIL 1.1.6
or 1.1.7. Any ideas on what I'm doing wrong?

...
building '_imaging' extension
creating build/temp.linux-i686-2.7
creating build/temp.linux-i686-2.7/libImaging
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -IlibImaging -I/usr/include -I/usr/local/include
-I/usr/include/python2.7 -c _imaging.c -o
build/temp.linux-i686-2.7/_imaging.o
_imaging.c:76:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/image-sig/attachments/20110701/85c172b4/attachment.html>


More information about the Image-SIG mailing list