出错原因:PIL缺少依赖的库文件
解决办法:
1.安装依赖库
sudo apt-get install libjpeg-dev
sudo apt-get install libfreetype6-dev
sudo apt-get install zlib-devel
2.卸载PIL
sudo pip uninstall PIL
3.重新安装PIL
sudo easy_install PIL
python程序运行报错 IOError: decoder zip not available
原文地址:http://blog.csdn.net/duomoke/article/details/41700181