I am running Python3.4 on Windows 7. I am trying to use the Python interface for graphviz. This is a script I intend to run:
from graphviz import Digraph
imp
On jupyter(ipython) notebook with anaconda in win10 I solved the problem by conda install graphviz
after I had installed graphviz by pip install graphviz
Because Mac OS has not been mentioned I will add that I had the same problem on OS X Yosemite, the solution I found was to do brew install graphviz
This solved the problem, not sure if I shouldn't have just edited one of the other answers in this list, because they all seem to be the same answer, just install an official package in addition to the Python Library.
I had the same issue on Ubuntu(14.04) 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")
This is the fresh solution I've used :)
I got the same problem, I'm using Anaconda and Jupyter Notebook.
What I did to solve this problem is NOT to install Graphiz.zip from the intenet!
I just did these steps:
conda create -n [env_name]
conda install graphviz
import os os.environ['PATH'] = os.environ['PATH']+';'+os.environ['CONDA_PREFIX']+r"\Library\bin\graphviz"
Finally, The image is appeared, I made a small party for this because it took 3 days from me :(
I'm using Windows 10, Python 3.6 on Anaconda 3 and have faced the same issue.
I've had it work by doing the following in sequence:
worked fine after that.
Just install
conda install graphviz
then install
conda install -c conda-forge pydotplus