我是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'
答案 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.