Reputation: 113
I always used the "Run python file in terminal"-button in Vscode, but some recent update seems to have broken it for me. My default terminal is cmd, but when I use the button, it now uses powershell and does not activate the conda environment, which prevents my code from running.
When I open up a new terminal manually, it rightfully uses cmd, activates the env and python <path>
works again.
This is the output after pressing the run-button:
Does anyone know how to set the button to use cmd?
Upvotes: 2
Views: 1435
Reputation: 8411
This is an issue of Python Extension
. And it should be fixed tomorrow with the new release. You can refer to here for more details.
And have you add "python.terminal.activateEnvironment": true,
in the settings.json file? Because it's weird, as the cmd activates the environment while the Powershell does not.
Upvotes: 1