Ubuntu18.04下Graphviz报错,make sure the Graphviz z executables are on your systems‘ path

问题: 使用pip install graphviz安装好后,跑程序报以下错误

 failed to execute ['dot', '-Tpdf', '-O', 'test-output/round-table.gv'], make sure the Graphviz executables are on your systems' path

解决方法:
1.卸载graphviz

pip uninstall graphviz

2.运行下面两条命令

sudo apt-get install graphviz
pip install graphviz

解决方法参考: https://www.e-learn.cn/content/wangluowenzhang/162711

你可能感兴趣的:(Ubuntu,python,ubuntu)