在mac 上安装过程有些区折
http://stackoverflow.com/questions/20325473/error-installing-python-image-library-using-pip-on-mac-os-x-10-9?lq=1
ln -s /usr/local/include/freetype2 /usr/local/include/freetype
安装Imaging 提示freetype找不到时 ,需执行以上代码
批量安装所有依赖 sudo brew install libtiff libjpeg webp little-cms2
以下内容转自javaEye
pil站点: http://www.pythonware.com/products/pil/index.htm
pil下载: http://effbot.org/downloads/Imaging-1.1.6.tar.gz
pil文档: http://www.pythonware.com/library/pil/handbook/index.htm
[安装]
$ gunzip Imaging-1.1.6.tar.gz
$ tar xvf Imaging-1.1.6.tar
$ cd Imaging-1.1.6
$ python setup.py build_ext -i
$ python selftest.py
$ python setup.py install
安装完毕后,可在python安装目录下的site-packages找到PIL安装目录。