【Python】GraphViz's executables not found

原创
2020/11/09 16:52
阅读数 178

 sklearn决策树可视化时报错(graph.write_png()),出错原因是没有安装GraphViz's executables。Graphviz不是一个python tool,仍然需要安装GraphViz's executables.下载链接 http://www.graphviz.org/download/

 

win64具体下载链接:https://www2.graphviz.org/Packages/development/windows/10/cmake/Release/x64/

 

    对于一般IDE环境下安装后需要将Graphviz的bin路径添加到环境变量Path中,对于虚拟环境,例如conda,需要将bin路径下的内容拷贝到虚拟环境下的Library目录下(重复不覆盖)。

展开阅读全文
加载中
点击引领话题📣 发布并加入讨论🔥
0 评论
0 收藏
0
分享
返回顶部
顶部