Simon Griffee · Time, light, movement & distance.

Stop Taking PILs and Lay Head on Pillow and ldconfig, or, Getting Python Imaging Library libjpeg-Related Errors Fixed on RHEL

12 July 2013 · 1 minute read

You are using the Python Imaging Library (PIL), which uses libjpeg in your Django project on Red Hat Enterprise Linux (RHEL) and come across the following error in a terminal when trying to install stuff:

"The _imaging C module is not installed."

Or errors like the following in emails when your site breaks:

"TemplateSyntaxError: Couldn't get the thumbnail user_photo/something.jpg: The source file does not appear to be an image."

Here is your solution. And see this for more information. And these may also be helpful:


Set up deployment the Hynek Schlawack way.