首页 > 解决方案 > 使用 PIL img.show() 时出错

问题描述

我的目录中有一张图片,比如“image.png”。这是我运行的代码:

from PIL import Image

img = Image.open("image.png")
img.show()

并且弹出的错误信息是:“FSPathMakeRef(/Applications/Preview.app) failed with error -43。”

有谁知道这是什么意思?

标签: python-imaging-librarypython-3.6

解决方案


推荐阅读