在Python中尝试输出结构图时遇到了问题,无法输出图像,一直提示没有安装Graphviz, Pydot。
确认过Pydot使用pip install很顺利的完成了安装。
graphviz也同理安装了,但是进shell仍然提示不成功。
之后在官方主页上下载了msi后安装,解决了一部分问题
from graphviz import Digraph 语句能跑了
dot.render(‘test-output/round-table.gv’, view=True)
提示出错,没有dot。经过确认后,需要在系统的环境变量的PATH中增加一条指向
C:\Program Files (x86)\Graphviz2.38\bin
的路径,于是问题解决了。
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here:
Cookie Policy