module 'scipy.misc' has no attribute 'imread'-------AttributeError: 'module' object has no attrib...

im = sic.imread(name, mode="RGB").astype(np.float32)
AttributeError: 'module' object has no attribute 'imread'

需要安装pillow

可以使用如下命令

conda install pillow

或者
pip install pillow

官方scipy中提到,imread is deprecated! imread is deprecated in SciPy 1.0.0, and will be removed in 1.2.0. Use imageio.imread instead.

SciPy1.0.0不赞成使用imread,在1.2中已经弃用,可以使用imageio.imread来代替

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • mean to add the formatted="false" attribute?.[ 46% 47325/...
    ProZoom阅读 7,593评论 0 3
  • pyspark.sql模块 模块上下文 Spark SQL和DataFrames的重要类: pyspark.sql...
    mpro阅读 13,143评论 0 13
  • 超高速音视频编码器用法: ffmpeg [options] [[infile options] -i infile...
    吉凶以情迁阅读 10,117评论 0 4
  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi阅读 12,136评论 0 10
  • 你把我变成了会时不时翻着聊天记录傻笑的蠢女孩变成了会多愁善感会吃醋反酸的小女人把我变成了一只每时每刻都只想黏着你寸...
    八尾小妖阅读 4,127评论 8 6