I downloaded Graphviz 2.38
MSI version and installed under folder C:\\Python34
, then I run pip install Graphviz
, everything went well.
This is showing some path issue:
pip install graphviz
So this worked for me:
sudo apt-get install graphviz
If you are not using Conda but vanilla Python, 'brew install graphviz' works.
You should install the graphviz package in your system (not just the python package). On Ubuntu you should try:
sudo apt-get install graphviz
I had the same issue on Linux with Jupyter.
To solve it I've added the dot library to python sys.path
First: check if dot
is installed,
Then:
find his path whereis dot
-> /local/notebook/miniconda2/envs/ik2/bin/dot
Finally in python script : sys.path.append("/local/notebook/miniconda2/envs/ik2/bin/dot")
conda install python-graphviz
For Windows, install the Python Graphviz which will include the executables in the path.
When solving this issue for myself, I used this GitHub tutorial, which analysed the cause of this issue. If we read in between the lines, it says it needs system as well as python graph viz. In addition to conda install
, we would need to run:
conda install -c conda-forge python-graphviz
Then restart the kernel; it works like a charm.