安装相关依赖 pip3 install pydot sudo apt-get install graphviz在caffe-master/python目录下 python3 draw_net.py /home/xxx/caffe-master/examples/mnist/lenet_train_test.prototxt lenet.png