在使用 Python 的 vscode 中,ctrl+F5 总是要求“选择环境"; [英] In vscode using Python, ctrl+F5 always asks for "select environment"

查看:71
本文介绍了在使用 Python 的 vscode 中,ctrl+F5 总是要求“选择环境";的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I installed VSCode, downloaded official Python 3.6.4.

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

VSCode detected and set the environment right - I do see "python.pythonPath" user setting set correctly.

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

But, when using VS Code using Ctrl+F5to run a Python file, I am always getting asked for "select environment" and it shows me two options - Python - Python Experimental

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

What is this "Python Experimental"? How can I get rid of getting interrupted every time I try to run a script?

推荐答案

Run >添加配置... =>选择两个选项之一.

Run > Add Configuration... => Choose one of the two options.

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

After doing this it will no longer prompt you.

这篇关于在使用 Python 的 vscode 中,ctrl+F5 总是要求“选择环境";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆