借助于conda命令来安装:
第一步:安装pygraphviz
执行命令:conda install -c alubbock pygraphviz
第二步:验证dot是否可用
执行命令:dot -v
会出现:
dot - graphviz version 2.41.20170921.1950 (20170921.1950)
There is no layout engine support for "dot"
Perhaps "dot -c" needs to be run (with installer's privileges) to register the plugins?
执行以上两步,在使用pygraphviz中如出现如下错误:Format: "dot" not recognized. Use one of:, 执行第三步命令即可(如下)
第三步:如果dot命令可用, 执行命令:dot -c
到此安装成功