Pillow的安装需要libjpeg、libpng、freetype。
jpeg安装时需要:
libtool
在安装freetype时会出现
_imagingft.c:73:31: fatal error: freetype/fterrors.h: No such file or directory
#include <freetype/fterrors.h>
这时需要:
ln -s /usr/local/include/freetype2 /usr/local/include/freetype
安装libpng后,pillow还是不支持,这时需要安装zlib,Ubuntu官方源并没有!
zlib和png在这里下载
至此已安装结束: