当前位置:网站首页>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
边栏推荐
- Queue template code
- Leetcode 232, queue with stack
- Graph traversal - BFS, DFS
- On IRP from the perspective of source code
- JS arrow function user and processing method of converting arrow function into ordinary function
- Singleton mode
- Leetcode 1346. Check whether integers and their multiples exist
- An error occurs when the addressable assets system project is packaged. Runtimedata is null
- Resolve the error - error identifier 'attr_ id‘ is not in camel case camelcase
- Fastdfs mind map
猜你喜欢
100天拿下11K,转岗测试的超全学习指南
Commande dos pour la pénétration de l'Intranet
Install MySQL 5.0 under Linux 64bit 6 - the root password cannot be modified
MySQL基础合集
UnhandledPromiseRejectionwarning:CastError: Cast to ObjectId failed for value
居家第二十三天的午饭
Unity Odin ProgressBar add value column
Summary and effect analysis of methods for calculating binocular parallax
Go zero framework database avoidance Guide
Solution: NPM err! code ELIFECYCLE npm ERR! errno 1
随机推荐
Go language development Daily Fresh Project Day 3 Case - Press Release System II
An error occurs when the addressable assets system project is packaged. Runtimedata is null
MySQL数据库常识之储存引擎
mmap、munmap
Come in and teach you how to solve the problem of port occupation
Parsing methods of JSON data in C - jar and jobobject: error reading jar from jsonreader Current JsonReader item
How to learn software testing? Self study or training? After reading this article, you will understand
GO語言開發天天生鮮項目第三天 案例-新聞發布系統二
软件测试要怎么学?自学还是培训看完这篇文章你就懂了
黑客的入侵方式你知道几种?
Use of node template engine
Gsi-ecm digital platform for engineering construction management
MySQL进阶之表的增删改查
Async function ------ ES6
UKFslam
How to configure SSH public key in code cloud
MySQL基础合集
Vscode download speed up
Linux中,MySQL的常用命令
UKFslam