为什么Vscode说未安装Python?
当我打开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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这可能是由Python扩展版本引起的。
您可以尝试切换到预释放版本。
This may be caused by python extension version.
You can try switching to pre-release version.
您可以检查是否将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