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.

相关文章:

  • 2022-03-10
  • 2021-06-15
  • 2022-12-23
  • 2021-11-27
  • 2022-12-23
  • 2021-08-11
  • 2021-11-13
猜你喜欢
  • 2021-08-18
  • 2022-12-23
  • 2021-07-04
  • 2022-01-24
  • 2022-12-23
  • 2021-09-08
  • 2021-08-13
相关资源
相似解决方案