解决Windows下PIL库的"The _imagingft C module is not installed"错误
2017-09-27 22:27
525 查看
今天在尝试wordcloud库的时候发现一直报The _imagingft C module is not installed错误,这个错误是PIL的错误,主要作用是调用字体绘图。
PIL只要用Python的估计都知道,基础的绘图库,但是早早弃坑了,替代库为Pillow。
问题其实也很简单,原来Windows出现这个问题很好解决,到著名的Python二进制库站点
网上解决linux下这个问题的方法倒是很多。
经过一番实验,只有一种方法简单的解决了这个问题。
注意:此方法仅在Python2.7实验通过
首先,卸载PIL
然后,下载重新编译过的PIL安装即可。
PIL只要用Python的估计都知道,基础的绘图库,但是早早弃坑了,替代库为Pillow。
问题其实也很简单,原来Windows出现这个问题很好解决,到著名的Python二进制库站点
http://www.lfd.uci.edu/~gohlke/pythonlibs/找在Windows下编译过的PIL就OK了。可惜现在这个网站很大部分是wheel格式的,下载重新安装PIL并不解决问题。
网上解决linux下这个问题的方法倒是很多。
经过一番实验,只有一种方法简单的解决了这个问题。
注意:此方法仅在Python2.7实验通过
首先,卸载PIL
pip uninstall pil
然后,下载重新编译过的PIL安装即可。
http://www.sharejs.com/uploadfiles/2013/05/15/136858875363184.zip
相关文章推荐
- PIL写入字体出现ImportError:The _imagingft C module is not installed 错误的解决方法
- PIL “The _imagingft C module is not installed” 错误补救
- ImportError:The _imagingft C module is not installed 错误的解决方法
- window下Django第三方APP调用PIL生成验证码出现ImportError: The _imagingft C module is not installed解决
- Python 的PIL,可以解决ImportError The _imagingft C module is not installed
- Python: The _imagingft C module is not installed错误的解决
- the imagingft c module is not installed windows解决
- Python: The _imagingft C module is not installed错误的解决
- 安装PIL时_imagingft C module is not installed错误的解决方法
- PIL写入字体出现“ImportError: The _imagingft C module is not installed”的解决方法
- Pillow-PIL的完全Fok替代库--完美解决报错The _imagingft C module is not installed的解决方案
- Python图片处理PIL/pillow/生成验证码/出现KeyError: 和The _imagingft C module is not installed
- 用pil产生验证码出现:ImportError: The _imagingft C module is not installed
- python PIL ImportError: The _imagingft C module is not installed
- Windows系统下,报错The _imagingft C module is not installed
- Python图片处理PIL/pillow/生成验证码/出现KeyError: 和The _imagingft C module is not installed
- 用pil产生验证码出现:ImportError: The _imagingft C module is not installed
- 用pil产生验证码出现:ImportError: The _imagingft C module is not installed
- Python图片处理PIL/pillow/生成验证码/出现KeyError: 和The _imagingft C module is not installed
- 用pil产生验证码出现:ImportError: The _imagingft C module is not installed