[英]Why does VSCode say Python is not installed?
When I open up my VSCode, I immediately get the message "Python is not installed. Please download and install Python before using the extension."当我打开我的 VSCode 时,我立即收到消息“未安装 Python。请在使用扩展之前下载并安装 Python。” 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.当我关闭 VSCode 并再次打开它时,错误消息已修复,右下角显示 Python 3.10。 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.我已经尝试卸载并重新安装 Python 和 VSCode,但它仍然这样做。 Is there anything else that I can do to solve this problem?
我还能做些什么来解决这个问题吗?
Can you check if the python path is added to your environment variables.你能检查一下python路径是否被添加到你的环境变量中。 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
你也单独安装了python,如果你这样做了,那么在安装过程中有一个小复选框,你需要勾选以将python路径添加到环境变量
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.