当前位置:网站首页>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
边栏推荐
猜你喜欢
Another data analysis artifact: Polaris is really powerful
Elastic box model
3-5 obtaining cookies through XSS and the use of XSS background management system
Fastdfs mind map
MySQL基础之写表(创建表)
wait、waitpid
內網滲透之DOS命令
Resolve the error - error identifier 'attr_ id‘ is not in camel case camelcase
DOS command of Intranet penetration
What about laptop Caton? Teach you to reinstall the system with one click to "revive" the computer
随机推荐
启牛学堂有用吗,推荐的证券账户是否安全
Easy to use nprogress progress bar
vulnhub DC:1渗透笔记
黑客的入侵方式你知道几种?
Resolve the eslint warning -- ignore the warning that there is no space between the method name and ()
Selenium displays webdriverwait
Parsing methods of JSON data in C - jar and jobobject: error reading jar from jsonreader Current JsonReader item
On IRP from the perspective of source code
Solve the Chinese garbled code of URL in JS - decoding
Go zero framework database avoidance Guide
LeetCode 20、有效的括号
LeetCode 1337、矩阵中战斗力最弱的 K 行
Reentrant function
【SQL】字符串系列2:将一个字符串根据特定字符分拆成多行
MySQL 存储过程和函数
Awk example skills
go reflect
C migration project record: modify namespace and folder name
Factory mode
wait、waitpid