AttributeError:模块“ scipy.misc”没有属性“ imread”

时间:2020-04-28 14:54:59

标签: python error-handling scipy python-imaging-library imread

我收到此错误 AttributeError: module 'scipy.misc' has no attribute 'imread' 我已经安装并导入了“ scipy”和“枕头”。为什么我仍然遇到这个问题?

1 个答案:

答案 0 :(得分:2)

scipy.misc.imread在SciPy 1.0.0中已贬值,在Scipy 1.2.0中已删除。该文档建议改用imageio.imread

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