python - 在使用 Python 的 vscode 中,ctrl+F5 总是要求输入 "select environment"

标签 python python-3.x visual-studio-code

我安装了VSCode,下载了官方Python 3.6.4。

检测到 VSCode 并正确设置环境 - 我确实看到“python.pythonPath”用户设置设置正确。

但是,当使用 VS Code 使用 Ctrl+F5 运行 Python 文件时,我总是被要求“选择环境”,它显示了两个选项 - Python - Python 实验性

这个“Python 实验”是什么?每次尝试运行脚本时如何避免被打断?

最佳答案

Run > Add Configuration... => 选择两个选项之一。

执行此操作后,它将不再提示您。

关于python - 在使用 Python 的 vscode 中,ctrl+F5 总是要求输入 "select environment",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49312540/

相关文章:

debugging - VSCode dotnet 3.0 附加调试器不工作

python - 如何使用 native python 库列出当前在 linux 中的所有进程类型(运行、僵尸等)

c++ - VSCode 上的 PlatformIO 未编译 : collect2. exe:错误:ld 返回 1 退出状态

python - 无法使用 VB6 程序从 VB6 COM DLL 创建对象

python - Python 3 中的 writerow 总是在原始行之间写一个空行,Python2 工作得很好。为什么?

python - 在 Python-3 中返回原始内存

python - 设置属性 python

git - 如何使用 Visual Studio Code 作为 git 的默认编辑器?

Python:将字符串时间字典转换为日期时间

python - 将项目添加回可迭代对象( yield /生成器)