转载自:https://blog.csdn.net/dou3516/article/details/85052149
sklearn决策树可视化时报错(graph.write_png()),出错原因是没有安装GraphViz's executables。Graphviz不是一个python tool,仍然需要安装GraphViz's executables.下载链接 http://www.graphviz.org/download/
对于一般IDE环境下安装后需要将Graphviz的bin路径添加到环境变量Path中,对于虚拟环境,例如conda,需要将bin路径下的内容拷贝到虚拟环境下的Library目录下(重复不覆盖)。