LoginSignup
8
3

More than 5 years have passed since last update.

GraphvizでExecutableNotFound(~systems' PATH)エラーが出るときの対処法

Last updated at Posted at 2019-04-27

問題

オライリーの良書『Pythonではじめる機械学習』の決定木のあたりをやっていたら、突如『ExecutableNotFound: failed to execute ['dot', '-Tpng', '-O', 'tmp'], make sure the Graphviz executables are on your systems' PATH』とパスが通ってないっぽいエラーが出たので、対処法を書きます。
※Jupyter Notebook使用を想定

対処法

  1. Anaconda Promptで『conda install python-graphviz』を実行
  2. 環境変数Pathに『C:\Users\●●●●(ユーザ名)\Anaconda3\pkgs\graphviz-2.38-hfd603c8_2\Library\bin\graphviz』を追加
  3. PC再起動



これでいけるはず。

参考サイト

8
3
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
3