Graphviz's executables are not found (Python 3.4)

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

    I was stuck for a very long time at this problem but after sometime I found a solution:

    • pip install graphviz
    • conda install graphviz
    • Now again, install graphviz from => https://graphviz.org/_pages/Download/Download_windows.html (The msi file)
    • After setup is complete set path => C:\Program Files (x86)\Graphviz2.38\bin;
    0 讨论(0)
  • 2020-11-29 06:01

    If you are on Win10, install Graphviz and then use following command to add the path.

    import os
    os.environ["PATH"] += os.pathsep + 'C:\Program Files (x86)\Graphviz2.38/bin/'
    
    0 讨论(0)
提交回复
热议问题