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

本文详细介绍了如何解决使用pip安装Graphviz后,在运行程序时报错的问题。首先需要卸载现有的Graphviz,然后通过sudo apt-get install graphviz命令进行系统级安装,最后再使用pip install graphviz进行Python环境的安装,确保Graphviz的执行文件位于系统的PATH中。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

问题: 使用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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值