Python: The _imagingft C module is not installed错误的解决
生活随笔
收集整理的這篇文章主要介紹了
Python: The _imagingft C module is not installed错误的解决
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
Python: The _imagingft C module is not installed錯誤的解決
By 白熊花田(http://blog.csdn.net/whiterbear) 轉載需注明出處。謝謝。
在使用PIL模塊給圖片加入文本時發(fā)現(xiàn)調(diào)用字體時出現(xiàn) The _imagingft C module is not installed 錯誤。
找到的原因是:官網(wǎng)的PIL版本號編譯的時候缺少東西(PIL was compiled without libfreetype)。
解決的方法是:
- brew install freetype
- sudo pip uninstall pil
- sudo pip install pillow
我的是OSX系統(tǒng),其它情況能夠參考stackoverflow.
轉載于:https://www.cnblogs.com/zsychanpin/p/7105569.html
《新程序員》:云原生和全面數(shù)字化實踐50位技術專家共同創(chuàng)作,文字、視頻、音頻交互閱讀總結
以上是生活随笔為你收集整理的Python: The _imagingft C module is not installed错误的解决的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 开发者的眼光看产品
- 下一篇: python练习册 每天一个小程序 第0