Reputation: 587
I know this is basic, but I'm pretty stuck. I've never installed python packages on Windows OS before... only Linux.
I downloaded the graphviz-2.38 zip and moved it to my Anaconda packages directory. I unzipped it, and then on the command line tried:
C:\Users\name\Anaconda3\pkgs\graphviz-2.38> pip install graphviz-2.38
This is the error I got:
Could not find a version that satisfies the requirement graphviz-2.38 (from
versions: )
No matching distribution found for graphviz-2.38
I don't see any setup file within graphviz at all, so I'm a little lost.
Upvotes: 22
Views: 86659
Reputation: 31
I tried
pip install graphviz
conda install graphviz
Both of them didn't work for me.
Adding to the path seem to be the solution. Since I don't have admins right. I can do this temporarily within a script:
import os
os.environ["PATH"] += os.pathsep r"C:\Users\Nameuser\Anaconda3\Library\bin\graphviz"
Upvotes: 0
Reputation: 47
Upvotes: -1
Reputation: 871
I got "GraphViz's Executables not found" when I tried the program "https://www.w3schools.com/python/showpython.asp?filename=demo_ml_dtree4"
I tried
I solve the problem for WIndows-10 as follows:
Upvotes: 3
Reputation: 461
For Conda users:
1.
conda install graphviz
2.
conda install python-graphviz
Upvotes: 3
Reputation: 8521
For me just installing the graphviz
library dint work. It was not able to open dot
files. So I had to do the following:
Graphviz
version by clicking Stable 2.38 Windows install packages
from hereGraphviz
library using pip install graphviz
dot
files can be opened by selecting File --> Open
Upvotes: 10
Reputation: 2522
I faced the same issue and just pip install graphviz
didn't work for me.
In addition, I installed the binaries and set the bin folder in the Windows environment PATH
variable, and then it worked.
P.S. this solution installs the 0.8.2 version but works for keras.utils.vis_utils.plot_model
which was the problem for me
Upvotes: 15
Reputation: 2077
If you are using Conda, then run the following: conda install -c anaconda graphviz
Be sure though to run the conda cmd as Admin for avoiding privileges permission errors. The above command will update / install all the requirement, and graphviz will be available in the default environment at C:\ProgramData\Anaconda3 (for windows...Not sure for MAC).
Upvotes: 10