(Python) ValueError: Program dot not found in path

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

提交回复
热议问题