我想使用pip在Mavericks上安装PIL,但出现此错误。
_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
我的命令行工具已安装并且是最新的,我发现的每个提示都无济于事。我该如何进行编译?
编辑:我刚刚检查过,freetype也已经通过自制软件安装了
而不是符号链接到特定版本的freetype2,请执行以下操作:
ln -s /usr/local/include/freetype2 /usr/local/include/freetype
这样可以节省升级freetype2时重新创建符号链接的麻烦。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句