[英]ImportError: cannot import name '_UnstableArchMixin' from 'sklearn.base'
[英]ImportError: cannot import name '_ClassNamePrefixFeaturesOutMixin' from 'sklearn.base'
我正在努力从 sklearn.feature_selection 导入RFECV 。 但我总是有同样的错误。 有人可以帮忙吗? 错误:
ImportError: cannot import name '_ClassNamePrefixFeaturesOutMixin' from 'sklearn.base' (C:\Users\sedam\anaconda34\lib\site-packages\sklearn\base.py)
PS。 我的 SKlearn 的版本是 1.0.2。 谢谢。
好吧,您使用的 python 版本可能存在问题,或者与其他包的兼容性错误。
对于Windows,恐怕这可能行不通,不知道没用过。
conda install python=3.9 -y ;
conda update conda -y && conda update python -y
conda create --name meow python=3.9 -y ;
conda activate meow ;
conda install python=3.9 -y ;
conda install numpy pandas matplotlib seaborn scikit-learn ipykernel -y
conda update conda -y && conda update python -y
解决方案:#conda install -c conda-forge 不平衡学习
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.