当前位置:网站首页>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 pillow2.安装早期版本:
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学习更多编程知识,请关注我的公众号:

边栏推荐
- 先序遍历,中序遍历,后序遍历,层序遍历
- MUV LUV EXTRA 2019CCPC Qinhuangdao Station J Question KMP
- Quectel EC20 4G module dial related
- 图论,二叉树,dfs,bfs,dp,最短路专题
- sklearn数据预处理
- 查看日志常用命令
- 排序第一节——插入排序(直接插入排序+希尔排序)(视频讲解26分钟)
- 2017 G icpc shenyang Infinite Fraction Path BFS + pruning
- Transaction concluded
- Variable used in lambda expression should be final or effectively final报错解决方案
猜你喜欢
随机推荐
Learning Notes---Machine Learning
failed (13: Permission denied) while connecting to upstream
细谈VR全景:数字营销时代的宠儿
当酷雷曼VR直播遇上视频号,会摩擦出怎样的火花?
高项 04 项目整体管理
Distributed id generator implementation
View log common commands
composer 内存不足够
The maximum validity period of an SSL certificate is 13 months. Is it necessary to apply for multiple years at a time?
找出数组中不重复的值php
事务总结
【sqlite3】sqlite3.OperationalError: table addresses has 7 columns but 6 values were supplied
975. 奇偶跳 有序集合
常用测试用例设计方法之正交实验法详解
【ROS2原理8】节点到参与者的重映射
tianqf的解题思路
bzoj 5333 [Sdoi2018]荣誉称号
AD picture PCB tutorial 20 minutes clear label shop operation process, copper network
sklearn数据预处理
mysql summary









