您的位置:首页 > 编程语言 > Python开发

Python: The _imagingft C module is not installed错误的解决

2017-07-02 11:41 651 查看

Python: The _imagingft C module is not installed错误的解决

By 白熊花田(http://blog.csdn.net/whiterbear) 转载需注明出处。谢谢。

在使用PIL模块给图片加入文本时发现调用字体时出现 The _imagingft C module is not installed 错误。

找到的原因是:官网的PIL版本号编译的时候缺少东西(PIL was compiled without libfreetype)。

解决的方法是:

brew install freetype

sudo pip uninstall pil

sudo pip install pillow

我的是OSX系统,其它情况能够參考stackoverflow.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐