RuntimeError: failed to execute ['dot', '-Tpdf', '-O', 'test'], make sure the Graphviz executables

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/bitcarmanlee/article/details/83650852

在python中想用graphviz画图的时候,发现报了如下异常:

RuntimeError: failed to execute ['dot', '-Tpdf', '-O', 'test'], make sure the Graphviz executables are on your systems' path

很奇怪啊。python里面明明已经安装好了graphviz。。。
经过google搜索,发现是系统也需要安装graphviz。。。

sudo apt-get install graphviz

系统安装graphviz完毕以后,代码就可以正常运行。

猜你喜欢

转载自blog.csdn.net/bitcarmanlee/article/details/83650852