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`
source share