sudo apt-get build-dep python-imaging
# Ubuntu14.04中libfreetype的头文件在目录/usr/include/freetype2下,但PIL中使用的路径是freetype,所以将原来的目录链接到新建的freetype
cd /usr/include
sudo ln -s freetype2 freetype
sudo apt-get build-dep python-imaging
# Ubuntu14.04中libfreetype的头文件在目录/usr/include/freetype2下,但PIL中使用的路径是freetype,所以将原来的目录链接到新建的freetype
cd /usr/include
sudo ln -s freetype2 freetype