2

我是 Python 的新用户,我一直在寻找答案,但还没有真正找到任何对我有帮助的帖子。

我的问题很基本:

我使用此设置安装了 Pillow 模块:

https://pypi.python.org/packages/3.3/P/Pillow/Pillow-2.0.0.win32-py3.3.exe#md5=070260925c267318470e8a07251a0ab6

我正在为 32 位系统使用 Windows 8 和 python 3.3。(安装在“C:\Python33\”中)

我正在运行这个非常非常简单的代码:

>>> from PIL import Image # no error here

>>> img = Image.open("C:/Users/yoels/Desktop/Pictures/Yoel.jpg") # no errors here

>>> img.show()

但是,Windows 8 没有显示图片,而是打开了一个空白的 cmd 窗口,并发出一条通知说“应用程序无法打开”。

我真的很感激任何帮助!提前非常感谢..

4

1 回答 1

1

我也遇到了类似的问题,但是我在 Photo Viewer 上没有空白 cmd,而是空白,您可以先尝试将 PNG、JPG 与 Paint 关联,然后:

当照片查看器出现时,转到顶部的菜单: ->打开->选择程序->在西班牙语上
选择绘画
:-> Abrir-> Elegir Programa -> seleccionar Paint

截屏

于 2017-09-07T22:26:11.190 回答