安装graphviz之后出现make sure the Graphviz executables are on your systems' PATH的错误

 

graphviz是个软件,不能单独用Pip安装

首先,下载graphviz的安装包 ,地址:https://graphviz.gitlab.io/_pages/Download/Download_windows.html

如图所示,我安装包的位置

安装graphviz之后出现make sure the Graphviz executables are on your systems' PATH的错误

其次,将安装包的位置添加到变量环境中,如图所示:

安装graphviz之后出现make sure the Graphviz executables are on your systems' PATH的错误

操作分两步:

              (1)在用户变量“path”里添加 D:\Anaconda\anaconda\envs\tensorflow\Library\bin\graphviz

            安装graphviz之后出现make sure the Graphviz executables are on your systems' PATH的错误

           (2)在系统变量的“path”里添加 D:\Anaconda\anaconda\envs\tensorflow\Library\bin\graphviz\dot.exe

           安装graphviz之后出现make sure the Graphviz executables are on your systems' PATH的错误

最后,重启环境就可以了。