win7环境下python PIL Image模块 show函数不能正常显示图片
2014-04-21 12:17
555 查看
在xp下使用PIL中Image的show()函数时,执行下列代码:
在win7下面使用PIL中Image的show()函数时,执行下列代码:
发现图片不能够正常的显示,windows自带的图片查看器显示图片内容不存在。
解决方法:(X为python的安装盘符)
X:\Python26\lib\site-packages\PIL\ImageShow.py,第99行替换为:
原因见:http://www.velocityreviews.com/forums/t707158-python-pil-and-vista-windows-7-show-not-working.html
----解决方法摘自上面网站
from PIL import Image img = Image.open("G:\\1.png") img.show()
在win7下面使用PIL中Image的show()函数时,执行下列代码:
发现图片不能够正常的显示,windows自带的图片查看器显示图片内容不存在。
解决方法:(X为python的安装盘符)
X:\Python26\lib\site-packages\PIL\ImageShow.py,第99行替换为:
return "start /wait %s && PING127.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
----解决方法摘自上面网站
相关文章推荐
- win 7 下 PIL python Image模块 show函数不能正常显示图片
- Python-----PIL Image模块 show函数不能正常显示图片
- PIL Image模块 show函数不能正常显示图片
- PIL中Image模块的show函数无法正常显示图片
- PIL Image模块 show函数不能正常显示图片
- PIL Image模块 show函数无法正常显示图片
- ubuntu14.04环境下python3 Image.show()不显示图片问题
- PIL Image模块 show函数无法正常显示图片
- Python中通过Image的open之后,去show结果打不开bmp图片,无法正常显示图片
- win7环境下用Sublime Text3编写python不能运行input()函数的解决办法
- android imageview 图片不能正常显示 或不能自适应的解决方法
- PIL image模块处理图片,struct从mnist文件集读取十张图片并分别显示标签和图片
- android imageview 图片不能正常显示 或不能自适应的解决方法
- .net 4.0发布后不能正常显示图片问题,将iis应用程序池设置成4.0版本,报告错误:处理程序“PageHandlerFactory-Integrated”在其模块列表中有一个错误模块“ManagedPipelineHandler”
- CenOS6.5上matplotlib的show函数不能显示图片的问题
- nginx扩展模块,不能正常显示FastDfs上传的图片问题
- python 1: 解决linux系统下python中的matplotlib模块内的pyplot输出图片不能显示中文的问题
- PIL在windwos系统下Image.show无法显示图片问题的解决方法
- 关于在win7环境下线程里调用SaveFileDialog不能显示的解决方法
- .net 4.0发布后不能正常显示图片问题