JPEG libraries on python virtual environments
Bryce2 Nesbitt <[email protected]> Thu, 19 Jan 2012 13:39:12 -0800
| Newsgroups | gmane.comp.python.image |
|---|---|
| Message-ID | <CAC9LFPfm6MUxg7TZRAKn4ZRTBDiBMz0zdj-w37FcstVSGhA=+w@mail.gmail.com> |
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 - [email protected]
http://mail.python.org/mailman/listinfo/image-sig