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

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

    $ sudo pip uninstall pydot

    $ sudo pip install pydot2

    See the following link: http://infidea.net/troubleshooting-couldnt-import-dot_parser-loading-of-dot-files-will-not-be-possible/

提交回复
热议问题