问题:安装好graphviz之后经过测试,在命令行运行正常,(python执行正常,可正常输出pdf,弹出跳转查看图形),但是在Pycharm、notbook均不能正常输出文档。
且Pycharm中会出现报错:
ExecutableNotFound: failed to execute ['dot'], make sure the Graphviz executables are on your systems' PATH
解决:
在系统环境变量添加以下两个新变量:
GRAPHVIZ_DOT
GRAPHVIZ_INSTALL_DIR
值分别为bot.exe地址,和Graphviz根目录
参考 https://www.cnblogs.com/ylHe/p/6690824.html