> I have a lenny serverr with python2.5.x - recently setup virtualenv with
> python 2.6. I was trying to install PIL, and whether I use easy_install or use
> setup.py, I get the same error. The error message is a bit long, but maybe it
> will help to figure out what is wrong:
>
> (env)law...@au-kbc:~/install/env/Imaging-1.1.6$ python setup.py install
> running install
> running build
> running build_py
> running build_ext
> building '_imaging' extension
> gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-
> prototypes -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -I/usr/include/freetype2 -
> IlibImaging -I/home/lawgon/install/env/include -I/usr/local/include -
> I/usr/include -I/usr/include/python2.6 -c _imaging.c -o build/temp.linux-
> i686-2.6/_imaging.o
> _imaging.c:76:20: error: Python.h: No such file or directory


This error occurs due to absence of Python development libraries.

$ sudo apt-get install python2.5-dev

This will install development headers and now you can build your PIL
successfully.

Thanks,
Abdul Kader M
_______________________________________________
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers

Reply via email to