Bug:CalledProcessError: Command ‘[‘dot‘, ‘-Tpdf‘, ‘-O‘, [stderr: b‘Format: “pdf“ not recognized.
程序员文章站
2022-06-22 23:09:44
Bug:CalledProcessError: Command ‘[‘dot’, ‘-Tpdf’, ‘-O’, ‘BinaryTree.gv’]’ returned non-zero exit status 1. [stderr: b’Format: “pdf” not recognized. Use one of:\r\n’]jupyter notebook运行代码绘制二叉树图时遇到的bug今天用Graphviz绘图时遇到一个bug,如上,一查可知是graphviz安装配置的问题,卸载重新安装配置还是...
Bug:CalledProcessError: Command ‘[‘dot’, ‘-Tpdf’, ‘-O’, ‘BinaryTree.gv’]’ returned non-zero exit status 1. [stderr: b’Format: “pdf” not recognized. Use one of:\r\n’]
jupyter notebook运行代码绘制二叉树图时遇到的bug
今天用Graphviz绘图时遇到一个bug,如上,一查可知是graphviz安装配置的问题,卸载重新安装配置还是不行。(安装配置参考:https://www.pythonf.cn/read/129001)
但是还是会出现同样的问题,能导入graphviz,但是绘图失败,后来查到说安装低版本的Graphviz.msi可能解决问题,抱着死马当活马医的态度试了一下,居然可以了。
低版本2.28的下载
bug解决:
本文地址:https://blog.csdn.net/MRZHUGH/article/details/107888813