[英]Python- How to import DecisionTree Classifier from sklearn.tree
May I know how to import DecisionTreeClassifier
from sklearn.tree
as there is an error shown: ModuleNotFoundError: No module named 'sklearn'
我可以知道如何从sklearn.tree
导入DecisionTreeClassifier
,因为显示错误: ModuleNotFoundError: No module named 'sklearn'
Also, every time when I want to import functions like pandas
, I need to pip install
them which is time-consuming.另外,每次我想导入像pandas
这样的功能时,我都需要pip install
它们,这很耗时。 Is there any other methods to avoid installing each time for new importing function?有没有其他方法可以避免每次新导入function都安装? ps I have downloaded anaconda
already, but not sure if it could work. ps 我已经下载anaconda
,但不确定它是否可以工作。 Much Thanks!非常感谢!
You need to install the package Sklearn您需要安装 package Sklearn
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.