VS Code 无法识别 Python

问题描述 投票:0回答:1

我想用VS Code用Python做一个简单的。但每当我使用 VS Code 时都会出现此错误:

'python' is not recognized as an internal or external command,
operable program or batch file.

我尝试使用 PyCharm 来看看它是否有效,它只是做了很多其他事情。但是当我使用 IDLE 时,我认为它不起作用,因为我也无法在 C:\Program Files 中找到 Python 文件,但它确实起作用了。

python pycharm
1个回答
0
投票

确保您已访问 Python 的下载页面,并使用本机启动器(或终端,如果您选择的话)安装它。

接下来,通过单击四个框的堆栈或使用 Ctrl+Shift+X 转到 Visual Studio Code 中的“扩展”选项卡,然后搜索 Python 并安装 Microsoft 开发的验证结果:直接链接

如果在本文之前遵循这些步骤,Visual Studio Code 就不会表现得像未安装 Python。

© www.soinside.com 2019 - 2024. All rights reserved.