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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM