AttributeError: module 'scipy.misc' has no attribute 'imread'

AttributeError: module 'scipy.misc' has no attribute 'imread'

我遇到了这个错误 AttributeError: module 'scipy.misc' has no attribute 'imread' 我已经安装并导入了 "scipy" 和 "pillow"。为什么我还是遇到这个问题?

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