The _imaging C module is not installed

来源:互联网 发布:java模拟器安卓版官网 编辑:程序博客网 时间:2024/05/19 12:29

系统: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
官方示例:
官方示例

ps:两个小常识

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

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

阅读全文
0 0
原创粉丝点击