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

后端 未结 14 1377
臣服心动
臣服心动 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 01:56

    There is a new package in the pip repo called pydot2 that functions correctly with pyparsing2. I couldn't downgrade my packages because matplotlib depends on the newer pyparsing package.

    Note: python2.7 from macports

提交回复
热议问题