Discuss / Python / 无法执行graphviz:GraphViz's executables not found

无法执行graphviz:GraphViz's executables not found

执行scikit的示例时,

from sklearn.externals.six import StringIO
import pydot dot_data = StringIO() tree.export_graphviz(clf, out_file=dot_data) graph = pydot.graph_from_dot_data(dot_data.getvalue()) graph.write_pdf("iris.pdf")

出错信息:GraphViz's executables not found


  • 1

Reply