为什么我在更换发动机时出错?点引擎一切正常。你知道吗
代码:
from graphviz import Graph
dot = Graph()
dot.engine = 'neato'
dot.node('a')
dot.node('b')
dot.edge('a', 'b')
print(dot.source)
dot.render('test-output/round-table.gv', view=True)
错误:
graphviz.backend.ExecutableNotFound: failed to execute
['neato', '-Tpdf', '-O', 'test-output/round-table.gv'],
make sure the Graphviz executables are on your systems' PATH
这帮助我解决了windows上的问题:
"RuntimeError: Make sure the Graphviz executables are on your system's path" after installing Graphviz 2.38
使用.msi从https://graphviz.gitlab.io/_pages/Download/Download_windows.html安装,手动添加到路径。
如果您使用的是jupyter笔记本,请重新启动cmd窗口,可能还有web浏览器
相关问题 更多 >
编程相关推荐