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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章