PIL show() 报错

将 PIL 安装目录下的 ImageShow.py 文件的第 99 行:(我的 Python 安装在 D:\Program Files\python 2.6,那  ImageShow.py  文件在:D:\Program Files\python 2.6\Lib\site-packages\PIL\ImageShow.py)

 
return "start /wait %s && del /f %s" % (file, file) 
替换
return "start /wait %s && PING 127.0.0.1 -n 5 > NUL && del /f %s" % (file, file)  
 
 
ImportError: The _imaging C module is not installed 
 

解决方法:

去这个网站 https://pypi.python.org/pypi/Pillow/2.1.0#id2 下一个 Pillow-2.1.0.win-amd64-py2.7.exe (md5) 64位版本的即可。

posted on 2016-11-27 11:32  chinxfin  阅读(410)  评论(0编辑  收藏  举报

导航