Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

decoder jpeg not available mac osx

I am getting a decoder jpeg not available. I libjpeg installed using brew but when I install pillow, is get *** JPEG support not available

I had this working and all of a sudden it stopped working. I have unlinked and linked libjpeg again like it was suggested in few other SO answers. I have also uninstalled pillow and libjpeg and then installed it again, no joy.

like image 578
Chirdeep Tomar Avatar asked Dec 21 '14 01:12

Chirdeep Tomar


1 Answers

Have you installed libjpeg-dev?

sudo apt-get install libjpeg-dev

Edit: realized you're probably on OSX. Have you tried the following step from the accepted answer from this question?

  • Before installing PIL but after installing libjpeg, change the “JPEG_ROOT = None” line in my setup.py file to “JPEG_ROOT = libinclude(“/usr/local”)” (or wherever libjpeg is installed)

Have you tried the most common solution to this problem?

$ pip uninstall pillow`
$ brew install libjpeg`
$ pip install pillow`
like image 90
Jamie Counsell Avatar answered Sep 23 '22 14:09

Jamie Counsell