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

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

    I had the problem again and my above solution did not work. If that is true for you and you are also using Anaconda on a Mac with El Capitan, try this:

    conda install --channel https://conda.anaconda.org/RMG graphviz`
    conda install --channel https://conda.anaconda.org/RMG pydot
    

提交回复
热议问题