[Image-SIG] PIL compilation error on linux
Erwan Loaëc
erwan.loaec at cgin.fr
Fri Jul 8 14:23:44 CEST 2011
You need to install the "dev" package for python.
Using python 2.7, perhaps your system is based on unbuntu,
try to install the package "python-dev".
--
Erwan
Ryan Mahoski wrote:
> 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
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Image-SIG maillist - Image-SIG at python.org
> http://mail.python.org/mailman/listinfo/image-sig
More information about the Image-SIG
mailing list