title: how to install PIL with JPEG support on a raspberry pi?
body: <p>I tried to install <a href="http://www.pythonware.com/products/pil/">PIL</a> on my raspberry pi and read JPEG files. However, it does not work out of the box.</p>
  
  <p>When I run the following:</p>
  
  <pre><code>sudo pip install pil
  </code></pre>
  
  <p>I receive the following error, trying to open an Image:</p>
  
  <pre><code>""decoder jpeg not available""
  </code></pre>
  
  <p>While trying to install all needed JPEG libraries I ran into some errors e.g.: </p>
  
  <pre><code>sudo apt-get install libjpeg
  E: Unable to locate package libjpeg
  </code></pre>