首页 > 解决方案 > 由于 PIL 无法加载图像

问题描述

我正在尝试从 PIL 导入一些东西:

from PIL import ImageTK, Image

但是这个错误被标记了:

ModuleNotFoundError: No module named 'PIL'

我已经尝试过pip install PIL并且easy_install PIL错误仍然被标记出来请你帮我吗?顺便说一句,我在 Sublime 文本中编码

标签: pythonpython-3.xencodingpython-imaging-library

解决方案


尝试安装枕头,也许这可以解决您的问题:

pip install Pillow

推荐阅读