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来代替