dot” not found in path

问题描述:html

Drawing net to googlenet.pngpython

Traceback (most recent call last):python2.7

File "draw_net.py", line 58, in <module>post

main()this

File "draw_net.py", line 54, in maingoogle

phase)spa

File "/home/dxy/src/caffe-master-debug/python/caffe/draw.py", line 244, in draw_net_to_filedebug

fid.write(draw_net(caffe_net, rankdir, ext, phase))code

File "/home/dxy/src/caffe-master-debug/python/caffe/draw.py", line 223, in draw_netorm

return get_pydot_graph(caffe_net, rankdir, phase=phase).create(format=ext)

File "/home/dxy/src/anaconda2/lib/python2.7/site-packages/pydot.py", line 1883, in create

prog=prog))

Exception: "dot" not found in path.

 

Solution 1

先安装graphviz不然会出现相似:"dot" not found in path 的问题

安装graphviz不要用pip install安装,不然仍是会找不到可执行程序

安装:sudo apt-get insall graphviz

而后安装pydotpip install pydot

其中pyparsing会自动安装

 

 Solution 2

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

conda install pydot-ng 

conda install graphviz 

from@http://stackoverflow.com/questions/13987353/python-valueerror-program-dot-not-found-in-path

转载于:https://www.cnblogs.com/xianyadan/p/6523026.html