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.

$(function () {
$('pre.prettyprint code').each(function () {
var lines = $(this).text().split('\n').length;
var $numbering = $('

    ').addClass('pre-numbering').hide();
    $(this).addClass('has-numbering').parent().append($numbering);
    for (i = 1; i ').text(i));
    };
    $numbering.fadeIn(1700);
    });
    });

最新文章

  1. Entity Framework 6 Recipes 2nd Edition(11-6)译 -> 从一个”模型定义”函数里返回一个复杂类型
  2. Arc Engine下数据的加载处理
  3. Android笔记——我的Android课的开始
  4. Leetcode | Valid Sudoku & Sudoku Solver
  5. hdu 1530 最大团模板
  6. 疯狂VirtualBOX 实战讲学录:小耗子之VirtualBOX修炼全程重现
  7. php获取mac用于网站绑定服务器
  8. AdminCMD
  9. BZOJ 3864
  10. [20170705]理解linux su命令.txt
  11. linxu自定义安装及网络配置
  12. 【译】快速起步-JSX简介
  13. c# ListBox控件
  14. Eclipse Oxygen创建maven web项目(一)
  15. Android获取SD卡路径及SDCard内存的方法
  16. error info: boost not variable 问题解决
  17. centos7安装kubernetes 1.1
  18. php 验证访问浏览器是电脑还是手机
  19. ${pageContext.request.contextPath}的解释以及和request.contextPath的区别
  20. 51Nod 1421

热门文章

  1. struts2框架的登录制作
  2. 外键删除(T-SQL Drop Foreign Key)
  3. MySQL锁学习之UPDATE
  4. webStorm恢复误删除文件或工程
  5. .net core 开发短网址平台的思路
  6. 常用FastJSON的SerializerFeature特性及日期转换格式
  7. java.lang.Collections
  8. 软件测试博客日记Day02-11.16日 —— 赵天宇 —— 禅道的使用和配置
  9. 说说缓存,说说Redis
  10. Maven多模块的开发项目搭建