windows平台下,pip安装pydot和graphviz: pip install pygot pip install graphviz 测试时: import pydot print pydot.find_graphviz()