gpt4 book ai didi

python - pygraphviz 值错误 : Program dot not found in path

转载 作者:太空狗 更新时间:2023-10-30 01:16:15 25 4
gpt4 key购买 nike

<分区>

问题是:我在 Windows7 上安装了 pygraphviz 库和 Graphviz 应用程序(Graphviz 应用程序位于“C:\Program Files”中)。当我在 python 上运行我的程序时,我收到以下消息:

g.draw(filename,prog='dot')
File "C:\Python27\lib\site-packages\pygraphviz\agraph.py", line 1418, in draw
data=self._run_prog(prog,args)
File "C:\Python27\lib\site-packages\pygraphviz\agraph.py", line 1248, in _run_prog
runprog=self._get_prog(prog)
File "C:\Python27\lib\site-packages\pygraphviz\agraph.py", line 1236, in _get_prog
raise ValueError("Program %s not found in path."%prog)
ValueError: Program dot not found in path.

我该如何解决这个问题?

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com