当前位置:网站首页>Solve importerror: cannot import name 'imread' from 'SciPy misc‘
Solve importerror: cannot import name 'imread' from 'SciPy misc‘
2022-04-23 20:47:00 【NuerNuer】
Official explanation : scipy.misc.imread ( scipy.misc.imsave) is deprecated in SciPy 1.0.0, and will be removed in 1.2.0.
So the version is higher than 1.2.0 Of scipy It will report an error that the function cannot find , There are two solutions .
1. The official advice :
Use ``imageio.imwrite`` instead.
Use ``imageio.imread`` instead.
In the code import imageio, then
import imageio
imageio.imwrite('a.png', res)
b = imageio.imread('b.png')
2. to scipy Downgrade
pip install pillow==5.2.0
pip install scipy==1.1.0
# or pip install scipy==1.0.0
I remember here pillow Also downgraded .
版权声明
本文为[NuerNuer]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204210545522944.html
边栏推荐
- Use of node template engine
- MySQL basic collection
- On IRP from the perspective of source code
- Sequential state
- Addition, deletion, modification and query of advanced MySQL data (DML)
- A login and exit component based on token
- MySQL基础之写表(创建表)
- DOS command of Intranet penetration
- Another data analysis artifact: Polaris is really powerful
- Is qiniu school useful and is the recommended securities account safe
猜你喜欢
Summary and effect analysis of methods for calculating binocular parallax
JS arrow function user and processing method of converting arrow function into ordinary function
Common commands of MySQL in Linux
Devaxpress report replay: complete the drawing of conventional two-dimensional report + histogram + pie chart
100天拿下11K,转岗测试的超全学习指南
缓存淘汰算法初步认识(LRU和LFU)
Matlab: psychtoolbox installation
go defer
Prim、Kruskal
Preliminary understanding of cache elimination algorithm (LRU and LFU)
随机推荐
On IRP from the perspective of source code
Addition, deletion, modification and query of advanced MySQL data (DML)
Summary and effect analysis of methods for calculating binocular parallax
Easy to use nprogress progress bar
go reflect
GSI-ECM工程建设管理数字化平台
Introduction to intrusion detection data set
GO語言開發天天生鮮項目第三天 案例-新聞發布系統二
High paid programmer & interview question series 91 limit 20000 loading is very slow. How to solve it? How to locate slow SQL?
bounding box iou
41. The first missing positive number
How many hacking methods do you know?
Fastdfs mind map
常用60类图表使用场景、制作工具推荐
LeetCode 20、有效的括号
Minecraft 1.12.2模组开发(四十三) 自定义盾牌(Shield)
Go zero framework database avoidance Guide
Deep analysis of C language function
Zhongchuang storage | how to choose a useful distributed storage cloud disk
go array