Windows10
- 安装相应模块
pip install pydot-ng
pip install graphviz
pip install pydot
- 安装graphviz-2.38.msi
https://www.softpedia.com/get/Others/Miscellaneous/Graphviz.shtml#download
- 配置环境
在系统环境变量【Path】中添加变量【F:\Program Files (x86)\Graphviz2.38\bin】即可
Linux
- Ubuntu
sudo apt install python-pydot python-pydot-ng graphviz
- CentOS
sudo yum install python-pydot python-pydot-ng graphviz