当前位置: 代码迷 >> 综合 >> ImportError: cannot import name 'imread' from 'scipy.misc'
  详细解决方案

ImportError: cannot import name 'imread' from 'scipy.misc'

热度:88   发布时间:2023-12-29 01:04:43.0

问题:

ImportError: cannot import name 'imread' from 'scipy.misc' 

原因 :

`imread` is deprecated in SciPy 1.0.0, and will be removed in 1.2.0.
Use ``imageio.imread`` instead.

处理方法: 首先pip install imageio

然后 import imageio

代码里imageio.imread()处理
 

  相关解决方案