当前位置:网站首页>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
边栏推荐
- Flex layout
- go reflect
- Win 11K in 100 days, super complete learning guide for job transfer test
- go struct
- Latex formula
- Lunch on the 23rd day at home
- Leetcode 74. Search two-dimensional matrix
- On IRP from the perspective of source code
- Gsi-ecm digital platform for engineering construction management
- 41. 缺失的第一个正数
猜你喜欢

Vulnhub DC: 1 penetration notes

Lunch on the 23rd day at home

MySQL进阶之数据的增删改查(DML)

wait、waitpid

"Meta function" of tidb 6.0: what is placement rules in SQL?

MySQL基础合集

Preliminary understanding of cache elimination algorithm (LRU and LFU)

How to configure SSH public key in code cloud

一些接地气的话儿

Write table of MySQL Foundation (create table)
随机推荐
Is qiniu school useful and is the recommended securities account safe
Selenium 显示等待WebDriverWait
On IRP from the perspective of source code
Install MySQL 5.0 under Linux 64bit 6 - the root password cannot be modified
100天拿下11K,转岗测试的超全学习指南
wait、waitpid
unity 功能扩展
Leetcode 994, rotten orange
BMP JPEG picture to vector image contourtrace
2021-06-29 C escape character cancellation and use
Leetcode 232, queue with stack
Unity asset import settings
MySQL basic collection
Go限制深度遍历目录下文件
Devaxpress report replay: complete the drawing of conventional two-dimensional report + histogram + pie chart
Go zero framework database avoidance Guide
Vulnhub DC: 1 penetration notes
go defer
The iswow64process function determines the number of program bits
MySQL stored procedures and functions