2

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. enter image description here

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: enter image description here

Does anyone know how to set the button to use cmd?

5

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.