Graphviz's executables are not found (Python 3.4)

后端 未结 26 1392
故里飘歌
故里飘歌 2020-11-29 05:00

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         


        
26条回答
  •  清酒与你
    2020-11-29 05:36

    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:

    1. Create a new environment using >>conda create -n [env_name]
    2. install graphviz lib inside this new env: >> conda install graphviz
    3. I wrote this lines in the notebook cell and run it 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 :(

提交回复
热议问题