运行python程序报错:AttributeError: module 'scipy.misc' has no attribute 'imread'

 

报错原因1:scipy版本过高

解决方案:降低scipy版本,如下:

pip install scipy==1.2.1

 报错原因2:查看scipy.misc帮助文件得知,imread依赖于pillow

解决方法:在该python环境中,安装Pillow即可

pip install Pillow

 

相关文章:

  • 2021-10-21
  • 2021-11-14
  • 2021-09-15
  • 2021-12-19
  • 2021-11-02
  • 2021-11-28
  • 2021-08-27
猜你喜欢
  • 2021-12-16
  • 2022-12-23
  • 2022-12-23
  • 2021-12-05
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案