Visual Studio代码找不到我的python解释器



我可以在终端中运行python,但这表明没有找到python解释器,当我运行该文件时,它显示the python path in your debug configuration is invalid

单击查看图像

当我点击select python interpreter时,它显示了这一点,是的,文件路径是完全有效的

python在终端中运行良好

在VS代码中尝试Python扩展。向左走到";"扩展";,类型";Python";,选择第一个或你喜欢的(我选择了第一个(。在之后,您可能需要再次选择您的python解释器

最新更新