I installed VSCode, downloaded official Python 3.6.4.
VSCode detected and set the environment right - I do see "python.pythonPath" user setting set correctly.
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
What is this "Python Experimental"? How can I get rid of getting interrupted every time I try to run a script?
The Debug: Run (Start Without Debugging) action is triggered with Ctrl+F5 and uses the currently selected launch configuration. Many of the launch configuration attributes are supported in 'Run' mode. VS Code maintains a debug session while the program is running, and pressing the Stop button terminates the program.
To select a specific environment, use the Python: Select Interpreter command from the Command Palette (Ctrl+Shift+P).
Open Visual Studio Code in your project's folder. Click Yes ; and your venv is ready to go. Open a new terminal within VSCode Ctrl + Shift + P and you'll see that venv is getting picked up; e.g.: (venv) ... Activate.
Make sure VSCode is using the same environment. The environment folder will show up in the Explorer view. Right click on that folder and select Delete (or click on it, and hit the Delete key on your keyboard). A popup opens for confirmation to move to the recycle bin.
Run > Add Configuration...
=> Choose one of the two options.
After doing this it will no longer prompt you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With