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