ImportError: cannot import name ‘imresize‘解决办法

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 

猜你喜欢

转载自blog.csdn.net/baidu_39629638/article/details/107227815