python - 我安装了 Pillow 并尝试使用 from PIL import Image 但它给出了错误
问题描述
我已经安装了 Pillow (7.2.0) 但是当我使用
from PIL import ImageTk, Image, ImageDraw, ImageFont
它给了我这个错误:ModuleNotFoundError: No module named 'PIL'
我能做些什么?我做到了pip install Pillow
。我试过卸载和安装枕头,但没有用。我在 Windows 上并且有 python 3.7
解决方案
推荐阅读
- raspberry-pi - 无法找到包 ros-kinetic-depthimage-to-laserscan(在 Raspberry Pi 上)
- css - 带列的水平布局:如何在列大小固定且列数未知的情况下自动调整容器大小
- google-app-engine - 从 Golang AppEngine 快速轻松地发布到 Slack Webhook
- google-sheets - 将一个单元格链接到多个单元格排除 Google 表格中的中间范围
- php - 无法获取 coingecko API 的信息
- admob - 如何通过代码从 aerserv 关闭全屏横幅广告?
- php - \n 用文本打断显示,如何显示换行符而不是 \n 文本
- npm - 在本地运行 Jhipster-registry,无需浏览器同步
- android - 首次获取后观察到的 LiveData 并没有真正更新
- flutter - 颤振中有消息获取方法吗?