我是 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 窗口,并发出一条通知说“应用程序无法打开”。
我真的很感激任何帮助!提前非常感谢..