module 'scipy.misc' has no attribute 'imread'-------AttributeError: 'module' object has no attrib...

im = sic.imread(name, mode="RGB").astype(np.float32)
AttributeError: 'module' object has no attribute 'imread'

需要安装pillow

可以使用如下命令

conda install pillow

或者
pip install pillow

官方scipy中提到,imread is deprecated! imread is deprecated in SciPy 1.0.0, and will be removed in 1.2.0. Use imageio.imread instead.

SciPy1.0.0不赞成使用imread,在1.2中已经弃用,可以使用imageio.imread来代替

    原文作者:水球喵
    原文地址: https://www.jianshu.com/p/fc4b33439b7d
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞