调用异常:GraphViz';未找到s可执行文件(Python)

调用异常:GraphViz';未找到s可执行文件(Python),python,graphviz,Python,Graphviz,从以下代码中的点数据调用pydotplus.graph\u时出错: from IPython.display import Image dot_data = tree.export_graphviz(clf, out_file=None, feature_names=iris.feature_names,

从以下代码中的点数据调用pydotplus.graph\u时出错:

from IPython.display import Image  

dot_data = tree.export_graphviz(clf,
                                out_file=None,
                                feature_names=iris.feature_names,
                                class_names=iris.target_names,
                                filled=True,
                                rounded=True,
                                special_characters=True)  
graph = pydotplus.graph_from_dot_data(dot_data)  
Image(graph.create_png())
错误输出:

File "C:\Users\ss\Anaconda3\lib\site-packages\pydotplus\graphviz.py", line 1960, in create 'GraphViz\'s executables not found')
InvocationException: GraphViz's executables not found

正如其要求中所述,您需要在系统中安装。

您好,欢迎使用stack overflow。有关如何提问和相应更新问题的更多详细信息,请参阅链接。可能重复的