Reputation: 1
I am struggling to import RFECV from sklearn.feature_selection. But I always have the same error. Can anyone help, please? The error :
ImportError: cannot import name '_ClassNamePrefixFeaturesOutMixin' from 'sklearn.base' (C:\Users\sedam\anaconda34\lib\site-packages\sklearn\base.py)
PS. The version of my SKlearn is 1.0.2. Thanks.
Upvotes: 0
Views: 10878
Reputation: 480
Well, there might be an issue with the python version you're using or a compatibility error with other packages.
For Windows, I'm afraid this might or mightn't work don't know haven't used it.
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
Upvotes: 3