failed to execute ['dot', '-Tsvg'], make sure the Graphviz executables are on your systems' PATH

windows

python安装了graphviz包,使用时报错:failed to execute ['dot', '-Tsvg'], make sure the Graphviz executables are on your systems' PATH

参考:https://stackoverflow.com/questions/35064304/runtimeerror-make-sure-the-graphviz-executables-are-on-your-systems-path-aft

在 https://graphviz.gitlab.io/_pages/Download/Download_windows.html 下载graphviz-2.38.zip

解压到D:\Program Files (x86)\graphviz2.38\release\bin

import os
os.environ["PATH"] += os.pathsep + 'D:/Program Files (x86)/Graphviz2.38/release/bin/'

 

你可能感兴趣的:(failed to execute ['dot', '-Tsvg'], make sure the Graphviz executables are on your systems' PATH)