1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > Python: The _imagingft C module is not installed错误的解决

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

时间:2023-05-26 23:00:01

相关推荐

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

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

By 白熊花田(/whiterbear) 转载需注明出处。谢谢。

在使用PIL模块给图片加入文本时发现调用字体时出现The _imagingft C module is not installed错误。

找到的原因是:官网的PIL版本号编译的时候缺少东西(PIL was compiled without libfreetype)。

解决的方法是:

brew install freetypesudo pip uninstall pilsudo pip install pillow

我的是OSX系统,其它情况能够參考stackoverflow.

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。