I decided to get into machine learning and I started in Python to make getting into it a bit easier but after getting anaconda and writing this:

```
import sklearn 
import tree
features = [[140, 1], [130, 1], [150, 0], [170, 0]]
lables = [0, 0, 1, 1]
clf = tree.DecisionTreeClassifier()
clf = clf.fit(features, labels)
print(clf.predict([[150, 0]]))

```

But the problem is when I run it in anaconda3 the error message it gives back is

> 
> ModuleNotFoundError: No module named 'tree'
> 
> 
> 

and I have no idea why.

**RESOLUTION**

In this situation, the following package should resolve the issue. There are a few 'tree' packages but this solution is mentioned in <https://github.com/ray-project/ray/issues/7645>.

```
pip install dm-tree

```