今天在本地搭建环境运行之前的代码的时候输出了下面的报错信息:

module 'scipy.misc' has no attribute 'imread'

这里贴一下解决的方案:

经过查找对比分析,发现我本地是scipy是1.3.0版本的,而之前服务器端使用的是1.2.1版本的,在1.3之后的版本中scipy已经不再提供misc方法,所以这里会报错,解决方法直接选择对scipy进行降级处理:

pip3 install scipy==1.2.1

欢迎遇到同样问题的朋友,贴出来自己的解决方案,汇集到一起,帮助需要的人。

module 'scipy.misc' has no attribute 'imread' 报错解决相关推荐

  1. 解决AttributeError: module ‘scipy.misc‘ has no attribute ‘imread‘报错问题

    运行python程序报错:AttributeError: module 'scipy.misc' has no attribute 'imread' 报错原因1:scipy版本过高 解决方案:降低sc ...

  2. AttributeError系列之:AttributeError: module 'scipy.misc' has no attribute 'imread'报错问题

    这是读取图像数据流的函数,参数为图像路径. 由于scipy的更新,原来的一些方法已经在新版中不再支持,这种问题就是因为这种原因产生的: 主要解决办法有2种,一种是将scipy降级,另一种是将代码中涉及 ...

  3. 解决AttributeError: module ‘scipy.misc‘ has no attribute ‘imread‘问题

    在跑FCN时报错 AttributeError: module 'scipy.misc' has no attribute 'imread'. 查阅网上资料之后发现,大部分解决办法都是说没有安装PIL ...

  4. python报错AttributeError module ‘scipy.misc‘ has no attribute ‘imresize‘和 ‘imread‘

    python报错AttributeError: module 'scipy.misc' has no attribute 'imresize'和 'imread' 报错原因:scipy版本过高 解决方 ...

  5. 不降低scipy版本解决AttributeError: module ‘scipy.misc‘ has no attribute ‘imresize‘问题

    问题描述 在Tensorflow2.1.0上运行代码出现 AttributeError: module 'scipy.misc' has no attribute 'imresize' 查阅资料大多都 ...

  6. module 'scipy.misc' has no attribute 'imresize'

    报错 module 'scipy.misc' has no attribute 'imresize' import scipy.misc scipy.misc.imresize(img, (im_he ...

  7. pythont提示AttributeError: module ‘scipy.misc‘ has no attribute ‘imsave‘或‘imread‘

    本人在使用pytorch进行vgg16特征图可视化画图时碰到了以上问题,查询解决方法时很多建议 pip install Pillow 但是我这里输入后显示已经安装,而且还是报错,显然不是这个问题.后来 ...

  8. AttributeError: module ‘scipy.misc‘ has no attribute ‘toimage‘

    在使用scip.misc.toimage保存文件的时候,报错说是scipy.misc没有toimage. 代码片段如下: scipy.misc.toimage(img, cmin=0, cmax=1) ...

  9. AttributeError: module ‘tushare‘ has no attribute ‘get_k_data‘报错解决方法

    出现标题所示错误时,出错原因是你的python文件命名成了tushare.py,python解释器解析代码的时候从你的文件里找函数未找到而报错.

  10. AttributeError: 'function' object has no attribute 'Document'报错解决

    原因是函数名称和系统中的某个名称相同的,替换另外的名字就行了 报错代码: #读取docx中的文本代码示例 import docx def docx():file=docx.Document(filen ...

最新文章

  1. [译]5.1. System Initialization Overview 系统初始化简介
  2. PlayMaker的特殊事件FINISHED
  3. 【mysql技巧】按某一字段分组取最大(小)值所在行的数据
  4. Word无法打开该文件,因为文件格式与文件扩展名不匹配的解决办法
  5. 秋冬季节吃什么水果好
  6. Spring Boot-@Value获取值和@ConfigurationProperties获取值的比较
  7. 【渝粤题库】广东开放大学 信息安全数学基础 形成性考核 (2)
  8. game,match,competition,contest区别
  9. saltstack二
  10. Linux工作笔记-两Linux系统互传文件(使用SSH)
  11. pta求阶乘序列前n项和_序列问题总结-超级巧妙
  12. JavaScript引用数据类型
  13. linux pipe 阻塞,Linux pipe():從管道中讀取數據並不總是能夠解阻塞寫入器
  14. Spring(二十二):Spring 事务
  15. centos6.5编译安装mysql_Centos6.5编译安装mysql 5.7.14详细教程
  16. 计算机五笔字型编码方法,计算机汉字输入坐标码编码方法
  17. 360°视频论文调研
  18. java 检测表情符号_hutool工具包:判断一个字符串中是否包含emoji表情符号(emoji-java)...
  19. Android与bmob的有机结合
  20. MAVEN踩坑 Could not find artifact...

热门文章

  1. STL中的序列式容器——list(列表)
  2. EF中CodeFirst中实体变化的处理方式
  3. 【转】Caffe初试(八)Blob,Layer和Net以及对应配置文件的编写
  4. ruby gem 记录
  5. BZOJ4435 : [Cerc2015]Juice Junctions
  6. 用于WebKit的CSS诀窍-图片版
  7. SAP Basic T-Code
  8. [2019.04.16] 由Python写成的自动解压脚本
  9. [Luogu 1160] 队列安排
  10. 网站跨域访问解决方法