2020-09-08
阅读量:
1156
python报错:graphviz.backend.ExecutableNotFound: failed to execute ['dot', '-Tpng', '-O', 't est.gv']
问:
python绘制决策树图时出现报错:graphviz.backend.ExecutableNotFound: failed to execute ['dot', '-Tpng', '-O', 't est.gv']
答:
python绘制决策树图除了需要安装graphviz包,还进行环境配置后才能调用,具体方法如下:
找到 控制面板——》系统——》高级系统设置——》系统属性——》高级——》环境变量——》系统变量——》Path中添加C:\Program Files (x86)\Graphviz2.38\bin;(此为Graphviz的安装路径)






评论(0)


暂无数据
推荐帖子
0条评论
0条评论
0条评论