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

边栏推荐
- Forest Program dfs+tanjar仙人掌
- tianqf's problem-solving ideas
- 排序第二节——选择排序(选择排序+堆排序)(两个视频讲解)
- Inception V3 Eye Closure Detection
- 【修电脑】系统重装但IP不变后VScode Remote SSH连接失败解决
- The water problem of leetcode
- 分布式事务产生的原因
- 95后,刚工作2-3年就年薪50W+ ,才发现打败我们的,从来不是年龄···
- Leetcode 70 stairs issues (Fibonacci number)
- 【报错】Root Cause com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
猜你喜欢
随机推荐
P1505 [国家集训队]旅游 树链剖分
金九银十即将到来,求职套路多,面试指南我来分享~
【修电脑】系统重装但IP不变后VScode Remote SSH连接失败解决
排序第一节——插入排序(直接插入排序+希尔排序)(视频讲解26分钟)
【sqlite3】sqlite3.OperationalError: table addresses has 7 columns but 6 values were supplied
灵活好用的sql monitoring 脚本 part7
【ROS2原理8】节点到参与者的重映射
Lottie系列三 :原理分析
字节也开始缩招了...
力扣208,实现Trie(前缀树)
链表专项练习(三)
SAP ALV 数据导出被截断的bug
力扣第 305 场周赛复盘
P7 Alibaba Interview Questions 2020.07 Sliding Window Algorithm (Alibaba Cloud Interview)
物理层课后作业
我入职阿里后,才知道原来简历这么写
975. 奇偶跳 有序集合
Singleton DCL (double check the lock) full han mode and the hungry
TCP段重组PDU
什么是分布式事务









