模块导入错误图片

Module Import Error Img

我正在尝试从 pillow 5.1.0 导入图像模块。使用 python 3.6.5.

我输入了以下命令

from PIL import image.

执行此操作后,出现以下错误。

Traceback (most recent call last):
  File "<pyshell#4>", line 1, in <module>
    from PIL import image
ImportError: cannot import name 'image'

试试 from PIL import Image(注意图片中的大写 'I')。