我在Windows 8中安裝了GraphViz 2.32,並已將C:\ Program Files(x86)\ Graphviz2.32 \ bin添加到System PATH變量。仍然pydot無法找到它的可執行文件。爲什麼pydot無法在Windows 8中找到GraphViz的可執行文件?
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但我無法讓問題迎刃而解。
其中'pydot'和GraphViz的安裝不會對是否'pydot'的差異可以找到GraphViz的順序。 GraphViz可執行文件應該位於當前路徑中,以便'pydot'能夠檢測到它們。 –