首页 > 解决方案 > 在 Windows 上,即使在 pip install 或 conda 之后,graphviz 也无法正常工作。它说 InvocationException: GraphViz's executables not found

问题描述

在 Windows 上,即使在pip install或之后,graphviz 也无法正常工作conda。它说

InvocationException:未找到 GraphViz 的可执行文件。

我正在尝试用决策树建模。

 dot_data = StringIO()
 export_graphviz(dt, out_file=dot_data, 
                     filled=True, rounded=True,
                 feature_names=X.columns.values,
                 class_names = ['human','bot'],
                     special_characters=True)  
 graph = pydotplus.graph_from_dot_data(dot_data.getvalue())  
 Image(graph.create_png())`

标签: pythongraphvizpydot

解决方案


推荐阅读