Jpeg decoder unavailable mac osx

I get the jpeg decoder unavailable. I have libjpeg installed using brew, but when I install the pillow, it turns out *** JPEG support is not available

I had this job and I suddenly stopped working. I disconnected and linked libjpeg again, as suggested in several other SO answers. I also removed the pad and libjpeg, and then installed it again, without joy.

+5
source share
2 answers

Have you installed libjpeg-dev ?

sudo apt-get install libjpeg-dev

Edit: realized that you are probably on OSX. Have you tried the next step from the accepted answer from this question ?

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

Have you tried the most common solution to this problem?

 $ pip uninstall pillow` $ brew install libjpeg` $ pip install pillow` 
+5
source

I installed libjpeg form http://ethan.tira-thompson.com/Mac_OS_X_Ports.html and it works now. Probably brew did not create symbolic links where expected.

+2
source

Source: https://habr.com/ru/post/1209631/


All Articles