read

I was working on project for an e-commerce plateforme and was testing different framework, since I am quit comfortable with Django, most of my choices will be a Django based solution, so i found about Django-Oscar, witch is a good add-on for the Django project. Django-oscar is quite the hustle to setup, as I was testing it I got an error about the Jpeg support for the PIL/Pillow library. so here is how I resolved this:

NB: I am using Mac OS X 10.10 Yosemite.

PIL is missing libjpeg library.

  1. Go to : http://www.ijg.org/files/jpegsrc.v8c.tar.gz
  2. Unpack this package and cd to the unpacked folder cd ~/Downloads/jpeg-8c
  3. Compile it:
    1
    2
    ./configure
    make
  4. Then install:
    1
    sudo make install

    without sudo if in virtualenv !

  5. Now you need to uninstall PIL/Pillow and reinstall it
  6. Uninstall PIL, if you instlled it with pip, just type
    1
    sudo pip uninstall pil
  7. install PIL:
    1
    sudo pip install pil
  8. Enjoy !

Nouri


Published on

Leave a comment

Leave a Reply

Your email address will not be published. Required fields are marked *

E-Nouri

Full Stack Cloudiologist Mind

Back to Home