1)sudo apt-get install libjpeg-dev
2)sudo apt-get install libfreetype6-dev
3)sudo easy_install PIL
不安装libjpeg-dev,会出现:"decoder jpeg not available"错误,如下图示。

不安装libfreetype6-dev,会出现“The _imagingft C module is not installed”错误,如下图示:

-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
本人执行第三条命令即可安装成功了,不知道是不是运气,这里记录个笔记,执行的命令如下:
3)sudo easy_install PIL
摘自:http://www.redicecn.com/html/Linux/20120425/395.html