当前位置:网站首页>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
学习更多编程知识,请关注我的公众号:
边栏推荐
猜你喜欢
随机推荐
tianqf's problem-solving ideas
力扣 636. 函数的独占时间
分布式理论
力扣第 305 场周赛复盘
postgresql Window Functions
更改Jupyter Notebook默认打开目录
Flexible and easy-to-use sql monitoring script part7
Learning Notes---Machine Learning
Leetcode 70 stairs issues (Fibonacci number)
【烂笔头】各厂商手机手动抓log
Colors that Tkinter can choose from
灵活好用的sql monitoring 脚本 part7
我入职阿里后,才知道原来简历这么写
【Shell】查找进程的pid并根据pid获取该进程所占用的端口号以及该进程在系统中所下达的指令名称
HDU - 3183 A Magic Lamp Segment Tree
高德地图JS - 已知经纬度来获取街道、城市、详细地址等信息
The JVM thread state
eyb:Redis学习(2)
顺序表删除所有值为e的元素
MVN 中配置flyway mysq