安装graphviz
在anaconda powershell Prompt中
输入conda install graphviz
然后安装
conda install -c conda-forge pydotplus
接着在anaconda Prompt中安装
pip install graphviz
参考:https://stackoverflow.com/questions/28312534/graphvizs-executables-are-not-found-python-3-4
import graphviz
import os
os.environ[‘PATH’] = os.environ[‘PATH’]+’;’+os.environ[‘CONDA_PREFIX’]+r"\Library\bin\graphviz"