pycharm里面graphviz.backend.ExecutableNotFound: failed to execute dot问题解决

第一次发表:大家多多原谅

出现的问题

由于PyCharm在File->Setting->Project:项目名->Python Interpreter 中加入graphviz库,但是环境变量没有配置才出现的问题。

我的解决方法是:我的是window电脑

第一步:下载

windows版本下载地址: https://graphviz.org/download/

根据自己电脑位数下载

第二步:安装

一直默认下一步,这时候会我的系统把我的path配置好。

第三步:验证

在windows命令行界面,输入dot -version,然后按回车,如果显示如下图所示的graphviz相关版本信息,则安装配置成功。

第四步:改变

要把D:\Python\PycharmProjects\Genetic Algorithm\venv\Lib\site-packages里面的graphvize删除,把之前安装好的文件夹粘贴复制到site-packages(我的文件夹首字母是大写,最好与之前删除的graphvize命名一致),

这时候要重新配置环境变量:计算机→属性→高级系统设置→高级→环境变量→系统变量→path,在path中加入路径。D:\Python\PycharmProjects\Genetic Algorithm\venv\Lib\site-packages\graphviz\bin.然后再用dot -version 验证

我也是从下面得到帮助的:

graphviz.backend.ExecutableNotFound: failed to execute ['dot', '-Tpdf', '-O', 'Digraph.gv']问题解决_一一-CSDN博客https://blog.csdn.net/lizzy05/article/details/88529483?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522163184574516780264037130%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&request_id=163184574516780264037130&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~top_positive~default-1-88529483.pc_search_result_control_group&utm_term=graphviz&spm=1018.2226.3001.4187graphviz.backend.ExecutableNotFound: failed to execute ['dot', '-Tpdf', '-O', 'Digraph.gv']问题解决_一一-CSDN博客

  • 7
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
如何解决D:\python\python3.9.5\python.exe C:/Users/马斌/Desktop/NGSIM_data_processing/30s/x-y.py C:\Users\马斌\Desktop\NGSIM_data_processing\30s\x-y.py:12: MatplotlibDeprecationWarning: Support for FigureCanvases without a required_interactive_framework attribute was deprecated in Matplotlib 3.6 and will be removed two minor releases later. plt.plot(x, y) C:\Users\马斌\Desktop\NGSIM_data_processing\30s\x-y.py:20: MatplotlibDeprecationWarning: Support for FigureCanvases without a required_interactive_framework attribute was deprecated in Matplotlib 3.6 and will be removed two minor releases later. plt.show() D:\pyCharm\PyCharm 2020.2\plugins\python\helpers\pycharm_matplotlib_backend\backend_interagg.py:68: UserWarning: Glyph 36724 (\N{CJK UNIFIED IDEOGRAPH-8F74}) missing from current font. self.figure.tight_layout() D:\pyCharm\PyCharm 2020.2\plugins\python\helpers\pycharm_matplotlib_backend\backend_interagg.py:68: UserWarning: Glyph 25968 (\N{CJK UNIFIED IDEOGRAPH-6570}) missing from current font. self.figure.tight_layout() D:\pyCharm\PyCharm 2020.2\plugins\python\helpers\pycharm_matplotlib_backend\backend_interagg.py:68: UserWarning: Glyph 25454 (\N{CJK UNIFIED IDEOGRAPH-636E}) missing from current font. self.figure.tight_layout() D:\pyCharm\PyCharm 2020.2\plugins\python\helpers\pycharm_matplotlib_backend\backend_interagg.py:68: UserWarning: Glyph 20998 (\N{CJK UNIFIED IDEOGRAPH-5206}) missing from current font. self.figure.tight_layout() D:\pyCharm\PyCharm 2020.2\plugins\python\helpers\pycharm_matplotlib_backend\backend_interagg.py:68: UserWarning: Glyph 26512 (\N{CJK UNIFIED IDEOGRAPH-6790}) missing from current font. self.figure.tight_layout() D:\pyCharm\PyCharm 2020.2\plugins\python\helpers\pycharm_matplotlib_backend\backend_interagg.py:69: UserWarning: Glyph 36724 (\N{CJK UNIFIED IDEOGRAPH-8F74}) missing from current font. FigureCanvasAgg.draw(self) D:\pyCharm\PyCharm 2020.2\plugins\python\helpers\pycharm_matplotlib_backend\backend_interagg.py:69: UserWarning: Glyph 25968 (\N{CJK UNIFIED IDEOGRAPH-6570}) missing from current font. FigureCanvasAgg.draw(self) D:\pyCharm\PyCharm 2020.2\plugins\python\helpers\pycharm_matplotlib_backend\backend_interagg.py:69: UserWarning: Glyph 25454 (\N{CJK UNIFIED IDEOGRAPH-636E}) missing from current font. FigureCanvasAgg.draw(self) D:\pyCharm\PyCharm 2020.2\plugins\python\helpers\pycharm_matplotlib_backend\backend_interagg.py:69: UserWarning: Glyph 20998 (\N{CJK UNIFIED IDEOGRAPH-5206}) missing from current font. FigureCanvasAgg.draw(self) D:\pyCharm\PyCharm 2020.2\plugins\python\helpers\pycharm_matplotlib_backend\backend_interagg.py:69: UserWarning: Glyph 26512 (\N{CJK UNIFIED IDEOGRAPH-6790}) missing from current font. FigureCanvasAgg.draw(self)
05-25

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值