module 'scipy' has no attribute 'io'
时间: 2023-08-24 10:07:44 浏览: 217
无需降级scipy的情况下解决AttributeError: module ‘scipy.misc’ has no attribute ‘imread’,imresize,imsave等问题
这个错误是因为在导入scipy模块时出现了问题。正常情况下,应该使用import scipy.io来导入scipy模块中的io子模块。所以正确的导入方式应该是使用import scipy.io而不是import scipy。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [python报错集锦](https://blog.csdn.net/qq_27879831/article/details/103953828)[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~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [Scipy 下的io加载.mat数据和imread读取图片问题](https://blog.csdn.net/qq_35860352/article/details/80209370)[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~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文