JPEG libraries on python virtual environments

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

JPEG libraries on python virtual environments

Bryce2 Nesbitt
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  -  [hidden email]
http://mail.python.org/mailman/listinfo/image-sig
Reply | Threaded
Open this post in threaded view
|

Re: JPEG libraries on python virtual environments

Charlie Clark-6
Am 19.01.2012, 22:39 Uhr, schrieb Bryce2 Nesbitt <[hidden email]>:

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

Try pip install pillow. Pillow is a fork of PIL that is easier to use with  
setuptools.

Charlie
--
Charlie Clark
Managing Director
Clark Consulting & Research
German Office
Kronenstr. 27a
Düsseldorf
D- 40217
Tel: +49-211-600-3657
Mobile: +49-178-782-6226
_______________________________________________
Image-SIG maillist  -  [hidden email]
http://mail.python.org/mailman/listinfo/image-sig