0
点赞
收藏
分享

微信扫一扫

Python报错:ImportError cannot import name 'imresize'

原文链接

Python出现错误:

ImportError: cannot import name 'imresize'

解决方案

首先安装 pillow:

pip install pillow

然后安装 scipy 早期版本。

高级版 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()).

安装早期版本:

pip3 install scipy==1.1.0 --user

 
 

代码的路

Python报错:ImportError cannot import name 'imresize'

举报

相关推荐

0 条评论