cannot import name '_OneToOneFeatureMixin' from 'sklearn.base' (D:\Anacade\an\lib\site-packages\sklearn\base.py)
时间: 2023-08-26 17:13:42 浏览: 762
python 3.74 运行import numpy as np 报错lib\site-packages\numpy\__init__.py
引用第三种报错是由于无法从'sklearn.datasets'模块中导入'fetch_mldata'函数,这可能是因为该函数已被弃用。最后一种报错是由于无法从'sklearn.base'模块中导入'_OneToOneFeatureMixin',这可能是由于你使用的sklearn版本不兼容或者缺少了相应的模块。<em>1</em><em>2</em><em>3</em>
#### 引用[.reference_title]
- *1* *2* [已解决ImportError: cannot import name ‘Imputer‘ from ‘sklearn.preprocessing](https://blog.csdn.net/yuan2019035055/article/details/125202673)[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^chatsearchT3_1"}} ] [.reference_item]
- *3* [【Bug记录】ImportError: cannot import name ‘fetch_mldata‘ from ‘sklearn.datasets](https://blog.csdn.net/weixin_51545953/article/details/127382891)[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^chatsearchT3_1"}} ] [.reference_item]
[ .reference_list ]
阅读全文