首页 > 编程语言 > 详细

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

时间:2015-07-09 19:47:56      阅读:1325      评论:0      收藏:0      [点我收藏+]

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错误的解决

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!