官方解释: scipy.misc.imread ( scipy.misc.imsave) is deprecated in SciPy 1.0.0, and will be removed in 1.2.0.
所以版本高于1.2.0的scipy会报函数找不到的错误,解决方案有两种。
1.官方建议:
Use ``imageio.imwrite`` instead.
Use ``imageio.imread`` instead.
在代码里 import imageio,然后
import imageio
imageio.imwrite('a.png', res)
b = imageio.imread('b.png')
2.给scipy降级
pip install pillow==5.2.0
pip install scipy==1.1.0
#或 pip install scipy==1.0.0
这里记得将pillow也进行降级.