win 7 下 PIL python Image模块 show函数不能正常显示图片
2013-07-26 22:48
761 查看
在 win 7 下使用 PIL 中的 Image 模块的 show() 函数时,报如下错:
![](https://img-blog.csdn.net/20130726224121687?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvU2t5X3Fpbmc=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
该错误的解决方法很简单:
将 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)
替换为:
参考:
http://www.velocityreviews.com/forums/t707158-python-pil-and-vista-windows-7-show-not-working.html
博主所有文章已转自私人博客 Joe
的个人博客,谢谢关注!
该错误的解决方法很简单:
将 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)即可。
参考:
http://www.velocityreviews.com/forums/t707158-python-pil-and-vista-windows-7-show-not-working.html
博主所有文章已转自私人博客 Joe
的个人博客,谢谢关注!
相关文章推荐
- win7环境下python PIL Image模块 show函数不能正常显示图片
- Python-----PIL Image模块 show函数不能正常显示图片
- PIL Image模块 show函数不能正常显示图片
- PIL中Image模块的show函数无法正常显示图片
- PIL Image模块 show函数不能正常显示图片
- Python中通过Image的open之后,去show结果打不开bmp图片,无法正常显示图片
- PIL Image模块 show函数无法正常显示图片
- PIL Image模块 show函数无法正常显示图片
- .net 4.0发布后不能正常显示图片问题,将iis应用程序池设置成4.0版本,报告错误:处理程序“PageHandlerFactory-Integrated”在其模块列表中有一个错误模块“ManagedPipelineHandler”
- python 1: 解决linux系统下python中的matplotlib模块内的pyplot输出图片不能显示中文的问题
- PIL image模块处理图片,struct从mnist文件集读取十张图片并分别显示标签和图片
- PIL在windwos系统下Image.show无法显示图片问题的解决方法
- android imageview 图片不能正常显示 或不能自适应的解决方法
- ubuntu14.04环境下python3 Image.show()不显示图片问题
- nginx扩展模块,不能正常显示FastDfs上传的图片问题
- CenOS6.5上matplotlib的show函数不能显示图片的问题
- android imageview 图片不能正常显示 或不能自适应的解决方法
- python实现通过pil模块对图片格式进行转换的方法
- UIImage imageNamed:iamgename.png不能显示图片
- ie6不能正常显示png24透明图片解决方案_完善中...