【发布时间】:2013-08-28 15:21:33
【问题描述】:
我在 Windows 8 中安装了 GraphViz 2.32,并将 C:\Program Files (x86)\Graphviz2.32\bin 添加到 System PATH 变量中。 pydot 仍然无法找到它的可执行文件。
Traceback (most recent call last):
File "<pyshell#26>", line 1, in <module>
graph.write_png('example1_graph.png')
File "build\bdist.win32\egg\pydot.py", line 1809, in <lambda>
lambda path, f=frmt, prog=self.prog : self.write(path, format=f, prog=prog))
File "build\bdist.win32\egg\pydot.py", line 1911, in write
dot_fd.write(self.create(prog, format))
File "build\bdist.win32\egg\pydot.py", line 1953, in create
'GraphViz\'s executables not found' )
InvocationException: GraphViz's executables not found
我找到了这个https://code.google.com/p/pydot/issues/detail?id=65,但无法解决问题。
【问题讨论】:
-
您现在可以在不使用
sklearn.tree.plot_tree安装点的情况下可视化树
标签: graphviz scikit-learn pygraphviz pydot