pydot and graphviz error: Couldn't import dot_parser, loading of dot files will not be possible

后端 未结 14 1373
臣服心动
臣服心动 2020-11-28 01:15

When I run a very simple code with pydot

import pydot
graph = pydot.Dot(graph_type=\'graph\')

for i in range(3):

  edge = pydot.Edge(\"king\", \"lord%d\" %         


        
14条回答
  •  旧巷少年郎
    2020-11-28 02:12

    I forked the pydot repository [1], applied the Gabi Davar patch and some changes to support python-3. The package is available in the PyPI [2].

    Cheers

    • [1] https://pypi.python.org/pypi/pydot2/1.0.32
    • [2] https://pypi.python.org/pypi/pydot2

提交回复
热议问题