ModuleNotFoundError: No module named 'graphviz' solution
When executing the following code in Jupyter, an error is reported, prompting: ModuleNotFoundError: No module named 'graphviz'
# 导入需要的算法库和模块
from sklearn import tree
from sklearn.datasets import load_wine
from sklearn.model_selection import train_test_split
import graphviz
How to solve it?
1. Open Anaconda Prompt (Anaconda3) command window
2. Execute the command:
(base) C:\Users\think>pip install graphviz
3. The installation is complete.