pip install graphviz
graphviz-2.38.msi
添加安装文件bin目录到环境变量
重启pycharm
from graphviz import Digraph g = Digraph('测试图片') g.node(name='a',color='red') g.node(name='b',color='blue') g.edge('a','b',color='green') g.view()
pip install graphviz
graphviz-2.38.msi
添加安装文件bin目录到环境变量
重启pycharm
from graphviz import Digraph g = Digraph('测试图片') g.node(name='a',color='red') g.node(name='b',color='blue') g.edge('a','b',color='green') g.view()