title: Error in PIL installed with PIP - Django,Python
body: <p>I installed PIL using PIP. However, using PIL on Django, when trying to upload a .jpg file, I get the error:</p>
  
  <blockquote>
    <p>Upload a valid image. The file you uploaded was either not an image or a corrupted image.</p>
  </blockquote>
  
  <p>I read on the Internet about this error and a solution was to delete the compiled files for the current OS, then use setup.py again.</p>
  
  <p>However, as I installed PIL with PIP, I have no setup.py and no folder with files compiled for my particular OS. This is Mac OSX Lion.</p>
  
  <p>Update: I did not have libjpeg installed on my computer. I have it now and I am trying to change the PIL configuration to point to the libjpeg library.</p>