Error installing Pillow on ubuntu 14.04

Navid777 picture Navid777 · Oct 5, 2015 · Viewed 25.6k times · Source

I'm trying to install Pillow on Ubuntu 14.04 using this command:

pip install Pillow

but the installation fails with this error:

ValueError: --enable-jpeg requested but jpeg not found, aborting.

Answer

Navid777 picture Navid777 · Oct 5, 2015

The problem was that the package libjpeg-dev was not installed. To solve the problem you should do this:

sudo apt-get install libjpeg-dev