python - 由于 PIL 无法加载图像
问题描述
我正在尝试从 PIL 导入一些东西:
from PIL import ImageTK, Image
但是这个错误被标记了:
ModuleNotFoundError: No module named 'PIL'
我已经尝试过pip install PIL
并且easy_install PIL
错误仍然被标记出来请你帮我吗?顺便说一句,我在 Sublime 文本中编码
解决方案
尝试安装枕头,也许这可以解决您的问题:
pip install Pillow
推荐阅读
- python - 使用 Python 计算云的预计到达时间 (ETA)?
- c# - 使用 entityframework 到 postgresql 运行 linq 查询期间超时
- c# - 如果测试失败,C#/Selenium 重试
- c# - 反序列化存在于不同位置的 xml 配置文件
- wordpress - 在 wp_nav_walker 菜单 WordPress 中显示菜单标签两次
- .net - 是否可以在 Azure 通信服务中的聊天与同一组中发起呼叫
- visual-studio-code - 脚本在 jupyter notebook 中运行,但不在 vscode 中
- database - 如何在 Postgres 中将所有没有模式的数据从一个数据库复制到另一个数据库?
- storage - Azure 逻辑应用中的存储方法
- dynamics-crm - 电子邮件实体上的 Dynamics CRM 安全角色权限