zoukankan      html  css  js  c++  java
  • 完美解决AttributeError: module 'scipy.misc' has no attribute 'imread'报错问题

    欢迎关注WX公众号:【程序员管小亮】

    最近在运行代码的时候出现了这个错误——AttributeError: module 'scipy.misc' has no attribute 'imread'

    查阅网上资料之后发现,大部分解决办法都是说没有安装PIL第三方库,库名现在为Pillow,推荐直接使用命令pip install Pillow进行安装,但是我的问题并没有因此得到解决,还是继续报错AttributeError: module 'scipy.misc' has no attribute 'imread'

    经过查询和尝试,发现是scipy的版本问题, 降级到scipy==1.2.1就可以完美解决了。

    命令如下:

    pip install scipy==1.2.1
    

    我的配置如下:

    python = 3.5.6
    tensorflow = 1.13.1
    scipy = 1.2.1
    Pillow = 6.0.0
    

    在这里插入图片描述

    python课程推荐。
    在这里插入图片描述

  • 相关阅读:
    Go语言学习笔记(3)
    Haskell语言学习笔记(97)Phantom Type
    Rust语言学习笔记(12)
    堆排序 Rust实现
    Rust 智能指针(Rc)
    Rust 泛型
    Rust 枚举
    Rust 结构体
    Rust 引用
    二叉搜索树
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13302768.html
Copyright © 2011-2022 走看看