Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/307.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python jupyder笔记本电脑:OSError:[Errno 2]”;点“;在路径中找不到_Python_Deep Learning_Caffe_Caffe2 - Fatal编程技术网

Python jupyder笔记本电脑:OSError:[Errno 2]”;点“;在路径中找不到

Python jupyder笔记本电脑:OSError:[Errno 2]”;点“;在路径中找不到,python,deep-learning,caffe,caffe2,Python,Deep Learning,Caffe,Caffe2,我使用jupyder笔记本: from IPython import display graph = net_drawer.GetPydotGraph(train_model.net.Proto().op, 'mnist', rankdir='LR') #graph.write_png("lenet.png") display.Image(graph.create_png(), width=800) 我遇到了这个错误: -------------------------------------

我使用jupyder笔记本:

from IPython import display
graph = net_drawer.GetPydotGraph(train_model.net.Proto().op, 'mnist', rankdir='LR')
#graph.write_png("lenet.png")
display.Image(graph.create_png(), width=800)
我遇到了这个错误:

---------------------------------------------------------------------------
OSError                                   Traceback (most recent call last)
<ipython-input-11-95f1d8e2feb8> in <module>()
      2 graph = net_drawer.GetPydotGraph(train_model.net.Proto().op, 'mnist', rankdir='LR')
      3 #graph.write_png("lenet.png")
----> 4 display.Image(graph.create_png(), width=800)

/home/user/.local/lib/python2.7/site-packages/pydot.pyc in new_method(f, prog, encoding)
   1660                 """Refer to docstring of method `create`."""
   1661                 return self.create(
-> 1662                     format=f, prog=prog, encoding=encoding)
   1663             name = 'create_{fmt}'.format(fmt=frmt)
   1664             self.__setattr__(name, new_method)

/home/user/.local/lib/python2.7/site-packages/pydot.pyc in create(self, prog, format, encoding)
   1865                 args[1] = '"{prog}" not found in path.'.format(
   1866                     prog=prog)
-> 1867                 raise OSError(*args)
   1868             else:
   1869                 raise

OSError: [Errno 2] "dot" not found in path.

brew安装graphviz为我工作。

您的机器是什么?它是ubuntu16。
sudo apt-get insall graphviz
pip install pydot