[Image-SIG] JPEG libraries on python virtual environments

Bryce2 Nesbitt bryce2 at obviously.com
Thu Jan 19 22:39:12 CET 2012


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
    --------------------------------------------------------------------


More information about the Image-SIG mailing list