I downloaded Graphviz 2.38
MSI version and installed under folder C:\\Python34
, then I run pip install Graphviz
, everything went well.
I'm on macOS Catalina 10.15.3, and I had a similar error: ExecutableNotFound: failed to execute ['dot', '-Tsvg'], make sure the Graphviz executables are on your systems' PATH
Fixed it with:
pip3 install graphviz
AND brew install graphviz
Note the pip3 install
will only return the success message Successfully installed graphviz-0.13.2
so we still need to run brew install
to get graphviz 2.42.3 (as of 10 Mar 2020, 6PM).
1.install windows package from: https://graphviz.gitlab.io/_pages/Download/Download_windows.html and download msi file
Add in Environmental variables 2. Add C:\Program Files (x86)\Graphviz2.38\bin to User path
Add C:\Program Files (x86)\Graphviz2.38\bin\dot.exe to System Path
Restart your python notebook.
It will work.
import os
os.environ["PATH"] += os.pathsep + "/Macintosh HD/anaconda3/lib/python3.7/site-packages/sphinx/templates/graphviz"
This solved the PATH issue on MAC for me!
For Windows:
graphviz
packageC:\Program Files (x86)\Graphviz2.38\bin
to User path C:\Program Files (x86)\Graphviz2.38\bin\dot.exe
to System PathThis worked for me!
Just add below to your Environmental Variable(system) PATH on Windows
C:\Program Files (x86)\Graphviz2.38\bin
there, you can find .exe files
If not work
Find Graphviz2.38/bin folder in your Program Files not in python lib
Then, add to your PATH
It's important to find a folder where .exe files exist
trying doing this in python import sys !conda install --yes --prefix {sys.prefix} graphviz import graphviz