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

后端 未结 14 1410
臣服心动
臣服心动 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

    The solution was not to install pydot from somewhere, but "python-pydot" from official ubuntu repositories.

提交回复
热议问题