dot -Tpdf iris.dot -o 111.pdf

博客展示了使用dot命令将iris.dot文件转换为PDF文件的操作,即执行“dot -Tpdf iris.dot -o 111.pdf”命令。
dot -Tpdf iris.dot -o 111.pdf
Traceback (most recent call last): File "D:\Anaconda\Lib\site-packages\graphviz\backend\execute.py", line 91, in run_check proc.check_returncode() ~~~~~~~~~~~~~~~~~~~~~^^ File "D:\Anaconda\Lib\subprocess.py", line 508, in check_returncode raise CalledProcessError(self.returncode, self.args, self.stdout, self.stderr) subprocess.CalledProcessError: Command '[WindowsPath('dot'), '-Kdot', '-Tpdf', '-O', 'iris_decision_tree']' returned non-zero exit status 3221225477. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\pycharm\PythonProject\实验3.py", line 54, in <module> graph.render("iris_decision_tree") # 保存为PDF文件 ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^ File "D:\Anaconda\Lib\site-packages\graphviz\_tools.py", line 171, in wrapper return func(*args, **kwargs) File "D:\Anaconda\Lib\site-packages\graphviz\rendering.py", line 122, in render rendered = self._render(*args, **kwargs) File "D:\Anaconda\Lib\site-packages\graphviz\_tools.py", line 171, in wrapper return func(*args, **kwargs) File "D:\Anaconda\Lib\site-packages\graphviz\backend\rendering.py", line 324, in render execute.run_check(cmd, ~~~~~~~~~~~~~~~~~^^^^^ cwd=filepath.parent if filepath.parent.parts else None, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ quiet=quiet, ^^^^^^^^^^^^ capture_output=True) ^^^^^^^^^^^^^^^^^^^^ File "D:\Anaconda\Lib\site-packages\graphviz\backend\execute.py", line 93, in run_check raise CalledProcessError(*e.args) graphviz.backend.execute.CalledProcessError: Command '[WindowsPath('dot'), '-Kdot', '-Tpdf', '-O', 'iris_decision_tree']' returned non-zero exit status 3221225477. [stderr: b''] 进程已结束,退出代码为 1 为什么会报错
最新发布
11-03
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值