当前位置: 代码迷 >> 综合 >> 解决ImportError: cannot import name 'imread' from 'scipy.misc'(Anaconda3\lib\site-packages\scipy\misc)
  详细解决方案

解决ImportError: cannot import name 'imread' from 'scipy.misc'(Anaconda3\lib\site-packages\scipy\misc)

热度:77   发布时间:2023-10-18 13:39:00.0

解决 ImportError: cannot import name ‘imread’ from ‘scipy.misc’ (C:\ProgramData\Anaconda3\lib\site-packages\scipy\misc_init_.py)

解决ImportError: cannot import name 'imread' from 'scipy.misc'(Anaconda3\lib\site-packages\scipy\misc)
解决办法:先卸载旧版本:

pip uninstall scipy
pip uninstall pillow

重新安装

pip install pillow==5.2.0
pip install scipy==1.1.0
#如果还报错,就pip install scipy==1.0.0这个版本就没问题了

解决ImportError: cannot import name 'imread' from 'scipy.misc'(Anaconda3\lib\site-packages\scipy\misc)

  相关解决方案