AttributeError: 模块 'scipy.misc' 没有属性 'imread' [英] AttributeError: module 'scipy.misc' has no attribute 'imread'

查看:87
本文介绍了AttributeError: 模块 'scipy.misc' 没有属性 'imread'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到了这个错误AttributeError: module 'scipy.misc' 没有属性 'imread'我已经安装并导入了scipy"和pillow".为什么我还是遇到这个问题?

I got this error AttributeError: module 'scipy.misc' has no attribute 'imread' I have installed and import "scipy" and "pillow" already. Why I still got this problem?

推荐答案

scipy.misc.imread 在 SciPy 1.0.0 中折旧,并在 Scipy 1.2.0 中移除.文档建议改用 imageio.imread.

scipy.misc.imread is depreciated in SciPy 1.0.0, and removed in Scipy 1.2.0. The documentation suggests using imageio.imread instead.

https://docs.scipy.org/doc/scipy-1.2.1/reference/generated/scipy.misc.imread.html

这篇关于AttributeError: 模块 'scipy.misc' 没有属性 'imread'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆