Python: The _imagingft C module is not installed错误的解决
生活随笔
收集整理的這篇文章主要介紹了
Python: The _imagingft C module is not installed错误的解决
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
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.
轉載于:https://www.cnblogs.com/zsychanpin/p/7105569.html
《新程序員》:云原生和全面數字化實踐50位技術專家共同創作,文字、視頻、音頻交互閱讀總結
以上是生活随笔為你收集整理的Python: The _imagingft C module is not installed错误的解决的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 开发者的眼光看产品
- 下一篇: DedeCMS筛选简单实现方法不改后台源