系统:win 64
python : 2.7
使用pip 安装pip Pillow 无法正常使用wordcloud
报错:
File “C:\Python27\Lib\site-packages\PIL\Image.py”, line 37, in getattr
raise ImportError(“The _imaging C module is not installed”)
ImportError: The _imaging C module is not installed

原因是Pip安装的Pillow 不匹配64的windows
也不用去找什么PIL了,这是C管理图片的一个模块,已经被Pillow取代了
Pillow, a replacement for PIL, the Python Image Library, which provides image processing functionality and supports many file formats.
Use from PIL import Image instead of `import Image

解决方法:手动下载重新安装pillow,需要卸载之前的
http://www.lfd.uci.edu/~gohlke/pythonlibs/#pil
Stackoverflow解决方法地址
https://stackoverflow.com/questions/9558562/the-imaging-c-module-is-not-installed-on-windows#comment12116230_9558617
官方示例:
The _imaging C module is not installed

ps:两个小常识

64位系统是x86-64技术是AMD搞出来的,然后得到了微软的支持,最终成为了标准。
所以有的版本号64位之前会有amd字样,有时候会想我用的是intel的芯片。
这跟intel还是amd没有关系

最后,我要回Linux!!!!!!!

相关文章:

  • 2022-01-24
  • 2022-02-07
  • 2022-02-11
  • 2021-11-27
  • 2021-08-08
  • 2022-12-23
猜你喜欢
  • 2021-09-08
  • 2021-08-13
  • 2021-08-18
  • 2022-12-23
  • 2022-12-23
  • 2021-08-11
  • 2022-12-23
相关资源
相似解决方案