联系
Knight's Tale » 技术

mac下安装 PIL (support _imagingft)

2015-02-13 22:36

mac下安装 PIL (support _imagingft)

安装freetype

  • brew install freetype
  • ln -s /usr/local/include/freetype2 /usr/local/include/freetype

没有第二步,就会出现 以下错误

_imagingft.c:73:10: fatal error: 'freetype/fterrors.h' file not found
#include <freetype/fterrors.h>
         ^
1 error generated.
error: command 'cc' failed with exit status 1

http://stackoverflow.com/questions/20325473/error-installing-python-image-library-using-pip-on-mac-os-x-10-9

安装pil

python setup.py build

python setup.py install