dot” not found in path

问题描述:

Drawing net to googlenet.png

Traceback (most recent call last):

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

main()

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

phase)

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

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

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

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

posted @ 2016-12-01 19:41  断桥相约  阅读(3352)  评论(0编辑  收藏  举报