当我运行以下命令时
from tkinter import *
from PIL import ImageTk, Image
root.mainloop()
Run Code Online (Sandbox Code Playgroud)
我有
Traceback (most recent call last):
File "image_viewer.py", line 2, in <module>
from PIL import ImageTk, Image
ImportError: No module named PIL
Run Code Online (Sandbox Code Playgroud)
但我已经安装了 Pillow,一切都很好。