当前位置:网站首页>ImportError: cannot import name ‘imresize‘
ImportError: cannot import name ‘imresize‘
2022-08-09 07:09:00 【代码的路】
出现错误:ImportError: cannot import name 'imresize'
1.安装pillow:
pip install pillow
2.安装早期版本:
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
学习更多编程知识,请关注我的公众号:
边栏推荐
猜你喜欢
随机推荐
洛谷P1110 报表统计 multiset stl好题
list与string转换
ByteDance Interview Questions: Mirror Binary Tree 2020
imageio读取.exr报错 ValueError: Could not find a backend to open `xxx.exr‘ with iomode `r`
jmeter并发数量以及压力机的一些限制
The AD in the library of library file suffix. Intlib. Schlib. Pcblib difference
P1505 [National Training Team] Tourism Tree Chain Breakdown
Flexible and easy-to-use sql monitoring script part7
car-price-deeplearning-0411
排序第三节——交换排序(冒泡排序+快速排序+快排的优化)(5个视频讲解)
链表专项练习(三)
细谈VR全景:数字营销时代的宠儿
【转载】Deep Learning(深度学习)学习笔记整理
Fragments
Lottie系列三 :原理分析
redis学习笔记
学习小笔记---机器学习
子路由及路由出口配置
Thread Pool Summary
Neural Network Optimizer