Fork me on GitHub

Python Image Library fails with message “decoder JPEG not available” - PIL

有可能是pillow包的版本不对,安装最新的可以解决问题。

# install libjpeg-dev with apt
sudo apt-get install libjpeg-dev
# if you're on Ubuntu 14.04, also install this
sudo apt-get install libjpeg8-dev

# reinstall pillow
pip install --no-cache-dir -I pillow
posted @ 2016-08-04 18:03  削微寒  阅读(255)  评论(0编辑  收藏  举报