我的版本是pydot-1.0.28,然后运行程序的时候就会给出上面的错误信息:
Couldn't import dot_parser, loading of dot files will not be possible.
然后,我的操作是:
sudo pip uninstall pydot
sudo pip install pydot2
然后运行我自己的程序后,就没有报错了。网上说这是pydot1的bug
参考文献
[1].pydot and graphviz error: Couldn't import dot_parser, loading of dot files will not be possible. https://stackoverflow.com/questions/15951748/pydot-and-graphviz-error-couldnt-import-dot-parser-loading-of-dot-files-will