Exception: “dot” not found in path in python on mac

后端 未结 6 630
广开言路
广开言路 2021-02-05 22:38

I want to use caffe.draw to draw the caffe net by anaconda python on mac. But I got the error like this:

File \"python/draw_net.py\", line 45, in &l         


        
6条回答
  •  野性不改
    2021-02-05 23:03

    If you are still getting the error, I suppose you installed pydot and graphviz using pip.

    Please use :

    sudo apt-get install graphviz
    
    pip install pydot
    

    If this gives you permission issues please use:

    sudo pip install pydot
    

    This will install the complete graphviz from Ubuntu.

    After this the draw_net.py runs correctly.

提交回复
热议问题