make sure the Graphviz executables are on your systems‘ PATH
完整報錯如下:
Traceback (most recent call last):
? File "/home/appleyuchi/anaconda3/envs/Python3.6/lib/python3.6/site-packages/graphviz/backend.py", line 164, in run
? ? proc = subprocess.Popen(cmd, startupinfo=get_startupinfo(), **kwargs)
? File "/home/appleyuchi/anaconda3/envs/Python3.6/lib/python3.6/subprocess.py", line 729, in __init__
? ? restore_signals, start_new_session)
? File "/home/appleyuchi/anaconda3/envs/Python3.6/lib/python3.6/subprocess.py", line 1364, in _execute_child
? ? raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'dot': 'dot'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
? File "DependencyParser.py", line 60, in <module>
? ? g.view()
? File "/home/appleyuchi/anaconda3/envs/Python3.6/lib/python3.6/site-packages/graphviz/files.py", line 242, in view
? ? quiet=quiet, quiet_view=quiet_view)
? File "/home/appleyuchi/anaconda3/envs/Python3.6/lib/python3.6/site-packages/graphviz/files.py", line 209, in render
? ? quiet=quiet)
? File "/home/appleyuchi/anaconda3/envs/Python3.6/lib/python3.6/site-packages/graphviz/backend.py", line 221, in render
? ? run(cmd, capture_output=True, cwd=cwd, check=True, quiet=quiet)
? File "/home/appleyuchi/anaconda3/envs/Python3.6/lib/python3.6/site-packages/graphviz/backend.py", line 167, in run
? ? raise ExecutableNotFound(cmd)
graphviz.backend.ExecutableNotFound: failed to execute ['dot', '-Tpdf', '-O', '測試圖片.dot.gv'], make sure the Graphviz executables are on your systems' PATH
?
原因:
沒有安裝graphviz
解決方案:
apt install graphviz
?
總結
以上是生活随笔為你收集整理的make sure the Graphviz executables are on your systems‘ PATH的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 一起来捉妖小可怜怎么配
- 下一篇: 欢乐斗地主怎么买豆(欢乐祥和满神州)