scipy版本问题,高级版本不再包含函数imresize,官网给出的解释及解决办法如下:

imresize is deprecated! imresize is deprecated in SciPy 1.0.0, and will be removed in 1.3.0. Use Pillow instead: numpy.array(Image.fromarray(arr).resize()).

解决方法:

pip install scipy==1.1.0