博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Python error:cannot import name ‘imread‘ from ‘scipy.ndimage‘
阅读量:3904 次
发布时间:2019-05-23

本文共 298 字,大约阅读时间需要 1 分钟。

Python error:cannot import name 'imread' from 'scipy.ndimage'

错误原因

这是因为从scipy1.3.0开始,imread已从这个模块移除

解决方法

  1. 第一种解决方法是将scipy卸载并重新安装1.3.0以下的版本。
  2. 第二种解决方法是安装imageio
    from from scipy.misc import imread to from imageio import imread
    from scipy.misc import imread种的mode改为from imageio import imread中的pilmode

参考链接

转载地址:http://sloen.baihongyu.com/

你可能感兴趣的文章
python 切片
查看>>
interview sum
查看>>
HTTPs Control
查看>>
澳洲孕维生素
查看>>
Prenatal Vitamin Brands
查看>>
has_key or in
查看>>
Python sort list customisation
查看>>
Python sort dict by value
查看>>
Python collections deque - double-ended queue ()
查看>>
Python sort sorted OrderDict
查看>>
Python dict sort
查看>>
Python lambda
查看>>
Python modify string in place
查看>>
Python dict del
查看>>
Http header
查看>>
HTTP Header
查看>>
ASCII - American Standard Code for Information Interchange
查看>>
进制转换
查看>>
Python L suffix - indicated long integer literals before Python3
查看>>
URL shortner
查看>>