(Python) ValueError: Program dot not found in path

前端 未结 4 964
醉酒成梦
醉酒成梦 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.

提交回复
热议问题