安装pydot,pip install pydot
出现OSError: pydot failed to call GraphViz.Please install GraphViz (https://www.graphviz.org/) and ensure that its executables are in the $PATH.
解决方法 sudo apt install python-pydot python-pydot-ng graphviz
转载于:https://www.cnblogs.com/xiecl/p/9985826.html