As mentioned in the docs here
Please ensure that pillow, a fork of the the Python Imaging Library (PIL), gets installed with JPEG support. Supported formats are printed when pillow is first installed. Instructions on how to get JPEG support are highly platform specific, but guides for PIL should work for pillow as well. Generally speaking, you need to ensure that libjpeg-dev is installed and found during installation.
I guess you didn't install libjpeg-dev
on your server at the time you installed Pillow. So you should:
- pip uninstall pillow
- apt-get install libjpeg-dev # or whatever similar in your server
- pip install pillow # yes again
Hope it helps!