简体   繁体   中英

cannot import name '_ClassNamePrefixFeaturesOutMixin' from 'sklearn.base' (C:\Users\yunhu\anaconda3\lib\site-packages\sklearn\base.py)

I am having trouble because of cannot import name '_ClassNamePrefixFeaturesOutMixin' from 'sklearn.base' (C:\Users\yunhu\anaconda3\lib\site-packages\sklearn\base.py) and I have no clue how to solve this problem. I uninstalled and then installed sklearn again but It still does not work.

I had the same thing trying to import SMOTE in a Jupyter notebook (after having just installed imblearn). Restarting the kernel solved it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM