使用graphviz时,出现failed to execute ['dot', '-Tpdf', '-O', 'test-table.gv']错误

出现错误:
graphviz.backend.ExecutableNotFound: failed to execute [‘dot’, ‘-Tpdf’, ‘-O’, ‘test-table.gv’], make sure the Graphviz executables are on your systems’ PATH
解决方案:
https://zhuanlan.zhihu.com/p/35639711
然而并没有解决。。。。
应该编辑系统变量,而不是用户变量把。。。。
舍弃了pip install graphviz 和conda install graphviz,到官网直接下载,放到anaconda安装包的目录下,我方的目录如下:
在这里插入图片描述将该bin目录放到系统变量下:
在这里插入图片描述
运行,居然又出现了错误:
ModuleNotFoundError: No module named ‘graphviz’
只有安装一下了:
在这里插入图片描述
然后运行程序,居然可以了。。。懵13。。。。

猜你喜欢

转载自blog.csdn.net/weixin_41104835/article/details/97135159
dot