在跑FCN时报错 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

————————————————
版权声明:本文为CSDN博主「我是管小亮」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/TeFuirnever/article/details/90760179

解决AttributeError: 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. 不降低scipy版本解决AttributeError: module ‘scipy.misc‘ has no attribute ‘imresize‘问题

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

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

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

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

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

  5. 成功解决AttributeError: module ‘scipy.sparse‘ has no attribute ‘coo_array‘

    成功解决AttributeError: module 'scipy.sparse' has no attribute 'coo_array' 目录 解决问题 解决思路 解决方法 T1.conda直接下 ...

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

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

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

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

  8. AttributeError: module ‘scipy.signal‘ has no attribute ‘correlation_lags‘

    一般这种问题,都是版本号不匹配的问题,通过 pip 更新安装包即可 我原来scipy的版本号是 1.5.2,执行代码 lags = signal.correlation_lags(len(u), le ...

  9. 解决AttributeError: module ‘matplotlib.mlab‘ has no attribute ‘normpdf‘

    解决AttributeError: module 'matplotlib.mlab' has no attribute 'normpdf' 报错代码 y = mlab.normpdf(bins, mu ...

最新文章

  1. Sublime Text3配置Node.js开发环境
  2. Java中Filter、Servlet、Listener的学习
  3. Jeff Dean亲笔盘点谷歌AI 2019:日均2篇论文,纵横16大方向,一文汇集重要开源算法...
  4. mongodb 3.2配置内存缓存大小为MB/MongoDB 3.x内存限制配置
  5. 阿里2500万美元战略投资“神工007”,天猫全面布局建材家居新零售
  6. Java中浮点数的基础知识
  7. tsconfig.json配置
  8. php 存储html 内容,HTML 本地存储
  9. linux 终端 朗读,使Linux终端朗读文字的小技巧分享
  10. 实现python扩展的C API方法过程全纪录(windows)
  11. python爬虫模拟登陆校园网+连接校园wifi
  12. flash builder 4 序列号
  13. K-means算法实现及分析
  14. day11_rabbitmq和redis
  15. 颜色格式转换: FFmpeg源代码简单分析:libswscale的sws_getContext()
  16. 青龙面板 企业微信应用推送
  17. 滴滴云技术沙龙:AI在“出行”和“云”的探索和应用
  18. 如何在flash中实现播放控制?
  19. python可视化(4)色板(mpl.colors, colormap, plt.cm, palette)
  20. 云服务器打不开,为什么打不开云服务器失败怎么回事

热门文章

  1. jsp之利用超链接实现参数传递
  2. 医疗CRM的应用价值有哪些?提升医院竞争力
  3. 题解 浣花溪公园【图论基本算法及应用】
  4. [软件工程导论(第六版)]第4章 形式化说明技术(课后习题详解)
  5. php自动永久登陆js,登录页面--记住密码--自动登录
  6. PR片头模板,创意设计品牌形象LOGO生长动画视频片头模板
  7. Maven 生命周期和插件详解
  8. 手动清除MY123.com
  9. 斐讯 PSG1208 K1 免拆机刷breed 不死uboot
  10. hp计算机电源图标不见了,EliteBook 8xx G5 笔记本电脑 - 电池可能无法充电,系统托盘中没有显示电源图标...