module 'scipy' has no attribute 'io'
时间: 2023-08-24 16:07:44 浏览: 240
无需降级scipy的情况下解决AttributeError: module ‘scipy.misc’ has no attribute ‘imread’,imresize,imsave等问题
这个错误是因为在导入scipy模块时出现了问题。正常情况下,应该使用import scipy.io来导入scipy模块中的io子模块。所以正确的导入方式应该是使用import scipy.io而不是import scipy。123
引用[.reference_title]
- 1 python报错集锦[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2
allinsert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"] - 2 3 Scipy 下的io加载.mat数据和imread读取图片问题[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2
allinsert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]