当前位置:网站首页>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
学习更多编程知识,请关注我的公众号:
边栏推荐
- longest substring without repeating characters
- 高项 01 信息化与信息系统
- 【烂笔头】各厂商手机手动抓log
- The AD in the library of library file suffix. Intlib. Schlib. Pcblib difference
- Difference Constraint - Graph Theory
- Built-in macros in C language (define log macros)
- Distributed id generator implementation
- MySQL高级特性之分布式(XA)事务的介绍
- 【转载】Deep Learning(深度学习)学习笔记整理
- vim 程序编辑器的基本操作(积累)
猜你喜欢
The JVM thread state
金九银十即将到来,求职套路多,面试指南我来分享~
【Template】Tree Chain Segmentation P3384
Important news丨.NET Core 3.1 will end support on December 13 this year
Change Jupyter Notebook default open directory
排序第四节——归并排序(附有自己的视频讲解)
makefile记录
XILINX K7 FPGA+RK3399 PCIE驱动调试
搭载开源鸿蒙系统的嵌入式XM-RK3568工业互联方案
The water problem of leetcode
随机推荐
长沙学院2022暑假训练赛(一)六级阅读
类和结构体
Pytorch 训练技巧
排序第三节——交换排序(冒泡排序+快速排序+快排的优化)(5个视频讲解)
Classes and Structures
【模板】树链剖分 P3384
半导体新能源智能装备整机软件系统方案设计
分布式理论
Better Scroll Y上下滚动无法上拉滚动解决办法
975. 奇偶跳 有序集合
【ROS2原理8】节点到参与者的重映射
洛谷P1110 报表统计 multiset stl好题
Change Jupyter Notebook default open directory
jmeter并发数量以及压力机的一些限制
【转载】Deep Learning(深度学习)学习笔记整理
学习小笔记---机器学习
tianqf的解题思路
Singleton DCL (double check the lock) full han mode and the hungry
MySQL高级特性之分布式(XA)事务的介绍
A brief introduction to microservice architecture