Graphviz's executables are not found (Python 3.4)

后端 未结 26 1455
故里飘歌
故里飘歌 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:37

    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:

    1. From Anaconda Terminal: pip install pydotplus
    2. From Anaconda Terminal: conda install pydotplus
    3. From Anaconda Terminal: pip install graphviz
    4. From Anaconda Terminal: conda install graphviz
    5. Went to Windows Environment Varialbes, PATH, and added the location of my dot.exe file under graphviz directory in Anaconda.

    worked fine after that.

提交回复
热议问题