码迷,mamicode.com
首页 > 编程语言 > 详细

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

时间:2015-07-09 19:48:21      阅读:166      评论:0      收藏:0      [点我收藏+]

标签:python   pil   

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

在使用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.

版权声明:本文为博主原创文章,未经博主允许不得转载。

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

标签:python   pil   

原文地址:http://blog.csdn.net/whiterbear/article/details/46820897

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!