I recently struggled to get PIL to recognize JPG images from within a
Python virtual environment.  I'm writing to the list to document what
I eventually found:

pip uninstall PIL
sudo apt-get install libjpeg8-dev
pip install PIL

http://stackoverflow.com/questions/4435016/install-pil-on-virtualenv-with-libjpeg

PIL seems really picky about version and location of the jpeg
libraries. And because PIL is written in C and compiled, you need the
development versions of the library in addition to the runtime
versions.

Turns:
 --------------------------------------------------------------------
    *** TKINTER support not available
    --- JPEG support not available
    --- ZLIB (PNG/ZIP) support available
    --- FREETYPE2 support available
    *** LITTLECMS support not available
    --------------------------------------------------------------------

Into:
 --------------------------------------------------------------------
    *** TKINTER support not available
    --- JPEG support available
    --- ZLIB (PNG/ZIP) support available
    --- FREETYPE2 support available
    *** LITTLECMS support not available
    --------------------------------------------------------------------
_______________________________________________
Image-SIG maillist  -  Image-SIG@python.org
http://mail.python.org/mailman/listinfo/image-sig

Reply via email to