VSC python 脚本执行改变了行为

VSC python script execution has changed behavior

我的电脑上安装了 VSC 和 Anaconda,起初 VSC 运行 我的所有 python 脚本都正确使用命令 python {file location}。现在它使用命令 conda run -n ML --no-capture-output --live-stream python {file location}.

执行我的 python 脚本

我希望它 return 恢复到以前的行为。

Use conda run for conda environments for running python files and installing modules. (#18479)

changelog(2022 年 2 月 28 日)。

您可以安装 1 个月前的 Python 扩展的旧版本以回滚。不过建议习惯就好。