(Python) ValueError: Program dot not found in path

前端 未结 4 938
醉酒成梦
醉酒成梦 2020-12-06 00:53

I have the following problem: I am on xUbuntu OS and I am trying to use networkx in a Flask application, and I am having the following code:

.....
import net         


        
相关标签:
4条回答
  • 2020-12-06 01:07

    Make sure Graphviz is installed through the Windows installer (can be downloaded from http://www.graphviz.org/Download_windows.php).

    Then add the path of the bin fold to the system variable "Path". It is "dot.exe" in bin fold that is looked for by pygraphviz.

    It does not work if you pip install graphviz.

    0 讨论(0)
  • 2020-12-06 01:10

    PyGraphviz doesn't work without Graphviz. Install that too.

    0 讨论(0)
  • 2020-12-06 01:12

    If you have Anaconda installed the simplest way to go about this is to run the following from CMD:

    conda install pydot-ng
    

    and:

    conda install graphviz
    

    This takes care of adding dot to the path.

    0 讨论(0)
  • 2020-12-06 01:23

    In SUSE linux:

    sudo zypper install graphviz
    

    might help.

    0 讨论(0)
提交回复
热议问题