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

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

    On OSX Mavericks the following did the trick... I got the same error but at the bottom there was also a complaint that the graphviz executable was not present... I think the problem was i had installed graphviz prior to the other modules?

    brew uninstall graphviz
    brew install graphviz
    

提交回复
热议问题