成功安装PIL以及ImportError:无法从'scipy.misc'导入名称'imread'

时间:2019-05-24 02:56:29

标签: python

我是python的新手。即使已成功安装Pillow,“ from scipy.misc import imread”也会给我一个“ ImportError”。

->点安装枕头

已满足要求:请进来 *** \ lib \ site-packages(6.0.0)

# -*- coding: utf-8 -*-
from PIL import Image
from wordcloud import WordCloud
from scipy.misc import imread

ImportError:无法从'scipy.misc'导入名称'imread'

1 个答案:

答案 0 :(得分:0)

这可能是版本问题。我将scipy.misc替换为imageio

`imread` is deprecated in SciPy 1.0.0, and will be removed in 1.2.0.
Use `imageio.imread` instead.