简体   繁体   中英

Python- How to import DecisionTree Classifier from sklearn.tree

  1. May I know how to import DecisionTreeClassifier from sklearn.tree as there is an error shown: ModuleNotFoundError: No module named 'sklearn'

  2. Also, every time when I want to import functions like pandas , I need to pip install them which is time-consuming. Is there any other methods to avoid installing each time for new importing function? ps I have downloaded anaconda already, but not sure if it could work. Much Thanks! 在此处输入图像描述

You need to install the package Sklearn

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