为什么Vscode说未安装Python?

发布于 2025-01-30 13:07:24 字数 187 浏览 1 评论 0原文

当我打开VSCODE时,我立即收到“未安装Python。请在使用扩展程序之前下载并安装Python。”在右下角。

当我关闭VSCODE并再次打开它时,错误消息已修复,并在右下角显示Python 3.10。但是为什么它首先不起作用呢?

我已经尝试卸载和重新安装Python和Vscode,但仍然这样做。 我还能做些什么来解决这个问题?

When I open up my VSCode, I immediately get the message "Python is not installed. Please download and install Python before using the extension." in the bottom right.

When I close VSCode and open it up again, the error message is fixed and it says Python 3.10 in the bottom right. But why didn't it work in the first place?

I've tried uninstalling and reinstalling both Python and VSCode, but it still does this.
Is there anything else that I can do to solve this problem?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

剑心龙吟 2025-02-06 13:07:24

这可能是由Python扩展版本引起的。

您可以尝试切换到预释放版本。

This may be caused by python extension version.

You can try switching to pre-release version.

enter image description here

捎一片雪花 2025-02-06 13:07:24

您可以检查是否将Python路径添加到您的环境变量中。您也单独安装Python,如果您这样做,则在安装过程中有一个小的复选框,您需要打勾以将Python路径添加到环境变量

Can you check if the python path is added to your environment variables. Also did you install python separately, if you do then there is a small checkbox during installation that you need to tick to add python path to environment variables

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文