【发布时间】:2015-01-08 14:47:09
【问题描述】:
import tkMessageBox
from PIL import Image
elif UserHand == "Scissors":
tkMessageBox.showinfo("Your choice","You chose: Scissors")
im = Image.open('C:\\Users\\Jeroen\\Downloads\\Scissors.jpg')
im.show()
所以。 What I am trying to do is when a choice is made that it opens the picture, however the screen does open but it says that the file does not exists.
我检查了它,当我转到文件路径时,图片就在那里。 我希望你能帮助我
我无法发布图片,但这是我想添加的图片:
http://gyazo.com/ce8ceca3128cdd2c95fbb6d77becf710
http://gyazo.com/bb148fd44d3e8117054e635b67635a80
谢谢,杰伦
【问题讨论】:
-
您的计算机是否具有管理权限? IIRC,PIL 将在某处创建一个临时文件,该文件实际上是已加载图像的副本。如果您的帐户具有受限权限,您的操作系统可能会阻止您创建该临时文件,然后图片查看器将无法加载任何内容。
-
是的,我的帐户确实拥有管理员权限。
-
我也在使用 Windows 8.1 Pro。
-
我认为它会立即删除或什至不创建文件
标签: python python-imaging-library