Python: The _imagingft C module is not installed错误的解决
2024-10-10 22:20:50
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 = $('
$(this).addClass('has-numbering').parent().append($numbering);
for (i = 1; i ').text(i));
};
$numbering.fadeIn(1700);
});
});
最新文章
- Entity Framework 6 Recipes 2nd Edition(11-6)译 ->; 从一个”模型定义”函数里返回一个复杂类型
- Arc Engine下数据的加载处理
- Android笔记——我的Android课的开始
- Leetcode | Valid Sudoku &; Sudoku Solver
- hdu 1530 最大团模板
- 疯狂VirtualBOX 实战讲学录:小耗子之VirtualBOX修炼全程重现
- php获取mac用于网站绑定服务器
- AdminCMD
- BZOJ 3864
- [20170705]理解linux su命令.txt
- linxu自定义安装及网络配置
- 【译】快速起步-JSX简介
- c# ListBox控件
- Eclipse Oxygen创建maven web项目(一)
- Android获取SD卡路径及SDCard内存的方法
- error info: boost not variable 问题解决
- centos7安装kubernetes 1.1
- php 验证访问浏览器是电脑还是手机
- ${pageContext.request.contextPath}的解释以及和request.contextPath的区别
- 51Nod 1421