【发布时间】:2019-06-05 10:55:38
【问题描述】:
我正在使用 Spyder 运行来自 Kera 文档的示例代码 https://keras.io/examples/mnist_denoising_autoencoder/ 因为不推荐使用 PIL。我更改了 #15 行
从 PIL 导入图像
进入
从枕头导入图片
但我被提示 'ModuleNotFoundError: 没有名为 'Pillow' 的模块'
我重新安装了所有内容,包括重新建立环境。通过使用 pip list,Pillow 已安装,版本为 5.4.1
我还注意到我已经安装了图像, 然而,当我尝试使用
导入图片
一条消息 'ModuleNotFoundError:没有名为'image'的模块' 出现了。
有人可以帮帮我吗?非常感谢。
【问题讨论】:
-
这是
Image不是image。from PIL import Image的错误报告是什么? -
兄弟,你的python版本是多少?
标签: tensorflow keras python-imaging-library