例外: Mac 上の Python のパスに「ドット」が見つかりません 質問する

例外: Mac 上の Python のパスに「ドット」が見つかりません 質問する

caffe.drawMac 上の Anaconda Python を使用して Caffe ネットを描画したいのですが、次のようなエラーが発生しました。

File "python/draw_net.py", line 45, in <module>
    main()
  File "python/draw_net.py", line 41, in main
    caffe.draw.draw_net_to_file(net, args.output_image_file, args.rankdir)
  File "/Users/xxh/caffe/distribute/python/caffe/draw.py", line 222, in draw_net_to_file
    fid.write(draw_net(caffe_net, rankdir, ext))
  File "/Users/xxh/caffe/distribute/python/caffe/draw.py", line 204, in draw_net
    return get_pydot_graph(caffe_net, rankdir).create(format=ext)
  File "/Users/xxh/anaconda2/lib/python2.7/site-packages/pydot.py", line 1883, in create
    prog=prog))
Exception: "dot" not found in path.

pydot と graphviz をインストールしましたが、dot のパスを python パスに追加するにはどうすればよいですか?

ベストアンサー1

ランニング中の私にとって:

brew install gprof2dot

問題を修正しました。

おすすめ記事