google一下,原因是缺少libjpeg-dev库
因为我是mac os,用的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
本文介绍了解决在MacOS系统中使用easy_install安装PIL遇到的问题的方法。首先需要卸载已安装的包并移除依赖项,然后安装缺失的libjpeg-dev库,并重新安装PIL。
558

被折叠的 条评论
为什么被折叠?



