zl程序教程

您现在的位置是:首页 >  Python

当前栏目

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

2023-02-18 16:47:22 时间

有可能是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