Graphviz problem on Windows


#1

I have installed graphviz via pip (and via downloaded wheel as well)
But when I attempted to visualize a comp-graph, I have got an error: “failed to execute [‘dot’, ‘-Tsvg’], make sure the Graphviz executables are on your systems’ PATH”.
I found some info over the internet and add GVPATH to both system and user variables, and also to the end of “Path” variable. But this did not work. Perhaps, I added wrong path, so I tried:
C:\Users\Nikolay\Downloads\graphviz-2.38\release\bin
C:\Users\Nikolay\Downloads\graphviz-2.38\release\bin\dot.exe
(which are paths to the binary files in the package from the graphviz website)
C:\Users\Nikolay\AppData\Local\Programs\Python\Python36\Lib\site-packages\graphviz
(which is path to the pip’s packages)
Can someone help me with it?


#2

SOLVED
What I did is:

  1. Downloaded graphviz and just placed in Program Files, without making it etc
  2. Added to the cell above following code:
    import os
    os.environ[“PATH”] += os.pathsep + r’C:\Program Files\graphviz-2.38\release\bin’