
python bug
文章平均质量分 63
happy_tong1
喜欢编程思维 喜欢玩,编写游戏
展开
-
UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figur
UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure.1. 本文适用的场景项目场景:平时正常导入matplotlib库没问题,运行代码时突然出现这个问题。而且导入库的顺序和以往不一样。问题描述用户警告:matplotlib正在使用agg,agg是一个没有GUI画图的后端,因此调用 matplotlib.pyplot()不能2.问题分析原创 2022-04-13 19:10:37 · 19413 阅读 · 4 评论 -
AttributeError: module ‘jinja2.ext‘ has no attribute ‘with_‘
项目场景:在使用eli5画图的时候,需要调用module 'jinja2.ext' 模块,结果报错。问题描述原因分析:模块jianja2.ext没有属性with_因为版本原因,导致jianja2部分属性 会矛盾——明明有属性但显示没属性。解决方案:按照以下的方案即可解决。1.找到自己正在使用的项目(pythonProject),在venv文件夹内找到Lib再找到site-packages。2.在site-packages库中找到eli5..原创 2022-04-12 21:10:21 · 3156 阅读 · 0 评论