PIL image 提示 decoder jpeg not available

google一下,原因是缺少libjpeg-dev库

因为我是mac os,用的easy_install安装

所以先卸载

http://stackoverflow.com/questions/1231688/how-do-i-remove-packages-installed-with-pythons-easy-install

First you have to run this command:

$ easy_install -m [PACKAGE]

It removes all dependencies of the package.

Then remove egg file of that package:

$ rm -rf .../python2.X/site-packages/[PACKAGE].egg


从新安装

http://blaolao.com/setting-up-django-mysql-mysql-python-pil-etc

下载libjpeg-dev编译安装

libjpeg (Needed for jpeg formatted images)


sudo ./configure
sudo make
sudo make install

之后从新安装pil

sudo easy_install pil


你可能感兴趣的:(PIL image 提示 decoder jpeg not available)