在用python/draw_net.py画图时,出现以下问题:
zml@zml-Inspiron-5423:~/caffe/examples/mnist$ python ~/caffe/python/draw_net.py lenet_train_test.prototxt a1.png --rankdir=LR
File "/home/zml/caffe/python/draw_net.py", line 9, in <module>
import caffe.draw
File "/home/zml/caffe/python/caffe/draw.py", line 22, in <module>
import pydot
ImportError: No module named pydot
参考其他博客:pip install grapviz; pip install pydot; 下载pydot依旧出问题:
installing collected packages: pyparsing, pydot
Found existing installation: pyparsing 2.0.1Cannot uninstall 'pyparsing'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
解决方案:sudo apt-get install python-pydot;
在mnist目录下运行以上命令;成功!