为什么pydot无法在Windows 8中找到GraphViz的可执行文件? [英] Why is pydot unable to find GraphViz's executables in Windows 8?

查看:145
本文介绍了为什么pydot无法在Windows 8中找到GraphViz的可执行文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows 8中安装了GraphViz 2.32,并将C:\ Program Files(x86)\ Graphviz2.32 \ bin添加到系统PATH变量中.仍然pydot无法找到其可执行文件.

I have GraphViz 2.32 installed in Windows 8 and have added C:\Program Files (x86)\Graphviz2.32\bin to the System PATH variable. Still pydot is unable to find its executables.

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 ,但无法解决问题.

I found this https://code.google.com/p/pydot/issues/detail?id=65 but am unable to get the problem solved.

推荐答案

发生这种情况是因为我在安装pydot之后安装了graphviz.因此,pydot无法找到它.按正确的顺序重新安装可以解决该问题.

This happened because I had installed graphviz after I had installed pydot. Hence, pydot wasn't able to find it. Reinstalling it in the correct order solved the problem.

这篇关于为什么pydot无法在Windows 8中找到GraphViz的可执行文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆