Skip to content

Open new "Python" when executing using different Python environment #22415

@xxc-zsz

Description

@xxc-zsz

When I select the venv environment and execute the script, the terminal will display the name of the current virtual environment. At this time, I switch to the conda virtual environment and execute the script again. The terminal has not changed. It can be seen from the command that the interpreter environment has been switched, but the name displayed in front of the directory has not changed.

Unless I manually open a new terminal, a new virtual environment is activated.

image

Related questions in SO.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-terminalbugIssue identified by VS Code Team member as probable buginfo-neededIssue requires more information from posterneeds PRReady to be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions