东方耀AI技术分享

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz
查看: 3512|回复: 0

[课堂笔记] 报错:module 'scipy.misc' has no attribute 'imread'

[复制链接]

1365

主题

1856

帖子

1万

积分

管理员

Rank: 10Rank: 10Rank: 10

积分
14418
QQ
发表于 2019-7-26 19:23:33 | 显示全部楼层 |阅读模式

报错:module 'scipy.misc' has no attribute 'imread'
module 'scipy.misc' has no attribute 'imresize'


解决:安装低版本的scipy
官方scipy中提到,imread is deprecated! imread is deprecated in SciPy 1.0.0,
and will be removed in 1.2.0. Use imageio.imread instead.

pip3 uninstall scipy
pip3 install scipy==1.0.0


或者没有安装pillow  imread依赖于pillow


pip3 install Pillow






让天下人人学会人工智能!人工智能的前景一片大好!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|人工智能工程师的摇篮 ( 湘ICP备2020019608号-1 )

GMT+8, 2024-3-29 15:21 , Processed in 0.169542 second(s), 19 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表