OSError
decoder jpeg not available

Solution:

apt-get install libjpeg-dev zlib1g-dev libpng12-dev

sudo ln -s /usr/lib/i386-linux-gnu/libjpeg.so /opt/uod/lib/
sudo ln -s /usr/lib/i386-linux-gnu/libz.so /opt/uod/lib/
sudo ln -sf /usr/lib/i386-linux-gnu/libfreetype.so.6 /opt/uod/lib
sudo ln -s /usr/lib/i386-linux-gnu/libjpeg.so /usr/lib/
sudo ln -s /usr/lib/i386-linux-gnu/libz.so /usr/lib/
sudo ln -sf /usr/lib/i386-linux-gnu/libfreetype.so.6 /usr/lib
pip uninstall pillow
pip install --no-cache-dir pillow