完整报错如下:

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相关推荐

  1. ExecutableNotFound: failed to execute ['dot', '-Tsvg'], make sure the Graphviz executables are on yo

    问题发生 在使用xgboost自带功能绘图的时候出现了问题 ExecutableNotFound: failed to execute ['dot', '-Tsvg'], make sure the ...

  2. lightgbm 决策树 可视化 graphviz

    决策树模型,XGBoost,LightGBM和CatBoost模型可视化 安装 graphviz 参考文档 http://graphviz.readthedocs.io/en/stable/manua ...

  3. graphviz.backend.ExecutableNotFound: failed to execute ['dot', '-Tpdf', '-O', 'Digraph.gv']

    graphviz.backend.ExecutableNotFound: failed to execute ['dot', '-Tpdf', '-O', 'Digraph.gv'], make su ...

  4. python流程图-使用Graphviz快速绘制流程图

    简介 自己在绘制流程图的时候一般用到的是Visio,但是感觉连线以及框图位置调整起来很烦-经过一番了解之后发现了Graphviz可以使用Python代码来绘制流程图的软件,使用这个工具我们可以更专注于 ...

  5. 成功解决graphviz\backend.py, line 162, in pipe raise ExecutableNotFound(args) graphviz.backend.Executab

    成功解决graphviz\backend.py", line 162, in pipe raise ExecutableNotFound(args) graphviz.backend.Exe ...

  6. 安装成功后python报错_python安装Graphviz后报错及解决方法

    说明一下,graphviz这个包,使用pip install graphviz安装后是不行的,这只安装了graphviz的pyhon调用接口,使用的话还需要下载graphviz的安装文件. 1.下载g ...

  7. 在PyCharm环境中使用graphviz遇到的问题

    目录 问题一:请确保Graphviz可执行文件在您的系统路径上 解决办法: 结果展示 : 问题二:Graphviz中出现的中文乱码问题 解决办法: 结果展示 : 问题一:请确保Graphviz可执行文 ...

  8. Graphviz画决策树中文乱码解决

    目录 画图软件Graphviz的安装 Graphviz画图时中文乱码的解决 1. Graphviz的安装 Graphviz的下载 官网下载地址 下载graphviz-2.38.msi. 安装完需要将b ...

  9. Ubuntu系统中运行graphviz报错

    Ubuntu系统中运行graphviz报错!出现类似如下问题:''ExecutableNotFound: failed to execute ['dot', '-Kdot', '-Tsvg'], ma ...

最新文章

  1. redis使用epoll
  2. mysql+存储过程+删除重复数据_mysql 存储过程 删除重复
  3. 比Visio快10倍的画图工具来了!赶紧整上~
  4. MATLAB中用FDATool设计滤波器及使用
  5. 使用nightwatch进行E2E测试中文教程
  6. Kafka分区分配策略(Partition Assignment Strategy
  7. 简述angularjsh中constant和$filter的用法
  8. TreeMap按key排序
  9. arcmap 坡降工具_ArcHydro_Toolbar_In_Arcmap Arcgis水文分析工具具体的操作 - 下载 - 搜珍网...
  10. 电脑里的所有播放器只能播放声音没有画面
  11. 计算机黑屏修改设置,电脑黑屏密码怎么设置
  12. 解决浏览器导出Excel文件名乱码问题
  13. vue3中使用elementui组件
  14. 在Flex Chart 中绘制3D图表
  15. 纳什均衡与帕累托最优
  16. Java的发展前景与就业趋势如何?
  17. Linux——Bash脚本基本用法总结
  18. 网课-文献管理与信息分析-罗昭峰作业答案(二)
  19. 黑客攻防学习笔记 准备工作
  20. 初学Jetson TX2之刷机跑demo

热门文章

  1. YII2集成GOAOP,实现面向方面编程!
  2. 【Spring】SpringMVC之REST编程风格
  3. 软件项目验收的准备工作
  4. ANDROID自定义视图——onMeasure流程,MeasureSpec详解
  5. 一卦,测一下我心里想的事
  6. 生成两个表的笛卡尔积
  7. 使用RDLC报表(二)--使用自定义数据集
  8. android 中 Proguard 和JNI 相关
  9. linux 编译窗口,Ubuntu 10.04上编译安装Sawfish窗口管理器
  10. Docker 启动 nacos