VSCode 无法运行 python 并出现以下错误:错误:会话无法生成请求 [英] VSCode fails to run python with this error: Error: Session cannot generate requests

查看:52
本文介绍了VSCode 无法运行 python 并出现以下错误:错误:会话无法生成请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 vscode 中运行 python,它已经运行了几个小时,但它突然停止运行,现在每当我运行它时,我都会收到此错误:

I am trying to run python in vscode and it has been working for a few hours but it suddenly stopped running and now whenever i run it i get this error:

错误:会话无法生成请求在 w.executeCodeCell

Error: Session cannot generate requests at w.executeCodeCell

我正在连接到一个 garmin 帐户,在那里我提取睡眠数据并尝试将其绘制在一个有效的图表上,但现在它已停止工作并出现上述错误.

I am connecting to a garmin account where i pull the sleeping data and trying to plot it on a graph which worked but now it has stopped working and giving me the above error.

我该如何解决这个问题?

How would i fix this?

推荐答案

您的依赖项可能存在一些问题.我建议您从环境中删除所有软件包,然后安装升级版本.为此,您可以按照以下步骤操作:

Your dependencies might be some issues. I suggest you remove all the packages from your environment then install the upgrade version. for this you can follow these steps:

pip freeze >需求.txt

现在一一删除

pip uninstall -r requirements.txt -y

然后你必须重新安装所有的包

then you have to reinstall all the packages

这篇关于VSCode 无法运行 python 并出现以下错误:错误:会话无法生成请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆