Advertisement
Guest User

Untitled

a guest
Jul 24th, 2014
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.72 KB | None | 0 0
  1. IOError: decoder zip not available
  2.  
  3. sudo pip uninstall PIL
  4. sudo pip install pillow
  5.  
  6. import Image # in PIL only
  7.  
  8. from PIL import Image # in pillow or PIL
  9.  
  10. $ sudo apt-get install libjpeg-dev zlib1g-dev
  11.  
  12. ---------------------------------------------------------------------
  13. PIL 1.1.7 SETUP SUMMARY
  14. --------------------------------------------------------------------
  15. version 1.1.7
  16. platform linux2 2.7.4 (default, Sep 26 2013, 03:20:26)
  17. [GCC 4.7.3]
  18. --------------------------------------------------------------------
  19. *** TKINTER support not available
  20. --- JPEG support available
  21. *** ZLIB (PNG/ZIP) support not available
  22. --- FREETYPE2 support available
  23. *** LITTLECMS support not available
  24. --------------------------------------------------------------------
  25.  
  26. # sudo apt-get install python-dev libjpeg-dev libfreetype6-dev zlib1g-dev
  27.  
  28. // create these links, if already exists, remove it and re-link it
  29. # ln -s /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib
  30. # ln -s /usr/lib/x86_64-linux-gnu/libfreetype.so /usr/lib
  31. # ln -s /usr/lib/x86_64-linux-gnu/libz.so /usr/lib
  32.  
  33. // reinstall PIL
  34. # pip uninstall PIL
  35. # pip install PIL
  36.  
  37. sudo brew install lzlib # installs zlib
  38. pip uninstall PIL
  39. pip install --no-index -f http://dist.plone.org/thirdparty/ -U PIL
  40.  
  41. sudo brew install lzlib # installs zlib
  42. pip uninstall PIL
  43. pip install PIL
  44.  
  45. $ cd Imaging-1.1.7
  46. $ python setup.py build_ext -i
  47. $ python selftest.py
  48.  
  49. --------------------------------------------------------------------
  50. --- TKINTER support available
  51. --- JPEG support available
  52. --- ZLIB (PNG/ZIP) support available
  53. *** FREETYPE2 support not available
  54. *** LITTLECMS support not available
  55. --------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement