14
pydot和graphviz错误:无法导入dot_parser,将无法加载点文件
当我使用pydot运行非常简单的代码时 import pydot graph = pydot.Dot(graph_type='graph') for i in range(3): edge = pydot.Edge("king", "lord%d" % i) graph.add_edge(edge) vassal_num = 0 for i in range(3): for j in range(2): edge = pydot.Edge("lord%d" % i, "vassal%d" % vassal_num) graph.add_edge(edge) vassal_num += 1 graph.write_png('example1_graph.png') 它向我显示错误消息: Couldn't import dot_parser, loading of dot files will …