[英]Cannot import anything from sklearn.ensemble
Don't mix conda with pip.不要将 conda 与 pip 混合使用。
Try these steps:尝试以下步骤:
pip uninstall sklearn
and then pip install -U scikit-learn
pip uninstall sklearn
然后pip install -U scikit-learn
Replace代替
from sklearn.ensemble._forest import VotingClassifier
with和
from sklearn.ensemble import VotingClassifier
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.