4

I installed django-photologue. But then when I try to save a photo in django admin it throws this error:

'decoder zip not available'

I have already un-installed and re-installed PIL. I hope someone can help me with the complete steps on how to overcome this error.

DMK
  • 2,448
  • 1
  • 24
  • 35
  • Have a look at this post ["Need help with a PIL Error — IOError: decoder zip not available"](http://stackoverflow.com/questions/3544155/need-help-with-a-pil-error-ioerror-decoder-zip-not-available), it may be of some help. – DMK Feb 14 '13 at 09:32

3 Answers3

5

On Windows install PIL using the binary installer from the PIL website instead of using pip.

glennr
  • 2,069
  • 2
  • 26
  • 37
2

I was able to solve this cleanly on Windows with pip install --use-wheel Pillow. I'm not sure what changed because the PILLOW installs used to work on my windows setup. I must have some mixed versions or the default behaviors have changed.

KobeJohn
  • 7,390
  • 6
  • 41
  • 62
-3

Try the following instructions:

sudo pip uninstall PIL
sudo apt-get install libjpeg8 libjpeg62-dev libfreetype6 libfreetype6-dev
sudo ln -s /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib
sudo ln -s /usr/lib/x86_64-linux-gnu/libfreetype.so /usr/lib
sudo ln -s /usr/lib/x86_64-linux-gnu/libz.so /usr/lib
sudo pip install -U PIL

That should solve PIL problem decoder zip not available.

Frankline
  • 40,277
  • 8
  • 44
  • 75