其他分享
首页 > 其他分享> > 解决GraphViz's executables not found

解决GraphViz's executables not found

作者:互联网

用python做决策树可视化时,出现了下面的错误:

于是安装Graphviz,并将其添加到path的环境变量。
Graphviz下载
提取码:fmst

但是已经安装了pydotplus且import之后,仍然会出现GraphViz’s executables not found问题,可用以下代码解决:

import os     
os.environ["PATH"] += os.pathsep + 'D:/Program Files (x86)/Graphviz2.38/bin/'

其中 D:/Program Files (x86)/Graphviz2.38/bin/是安装Graphviz的bin所在的路径。

标签:executables,bin,Graphviz,Program,found,GraphViz,os
来源: https://www.cnblogs.com/zhangzizi/p/14354892.html