Skip to content

There are two envs in terminal #22667

Closed as not planned
Closed as not planned

Description

@JerryPengNJ

Discussed in #22666

Originally posted by JerryPengNJ December 17, 2023
In the picture, two environments are visible in the terminal: the first one is the Python interpreter, and the second one is "conda init."

It appears to be an unusual situation, and you might be wondering if it is a new feature in Visual Studio Code (VSCode) or if there is a way to resolve it.

image

Activity

  1. changed the title [-]There are two envs in terminals[/-] [+]There are two envs in terminal[/+] on Dec 17, 2023
  2. HaXAlvin commented on Dec 20, 2023

    @HaXAlvin

    I also face the same problem sometimes.
    But I don't know when or how this happens.
    I use conda deactivate manually to remove the first env prompt.

  3. karrtikr commented on Dec 20, 2023

    @karrtikr

    Hi everyone, the selected Python environment is activated on top of the existing environment. If you would like to not have the base environment activated, try running the following command and restarting all shells:

    conda config --set auto_activate_base False
    
  4. locked as resolved and limited conversation to collaborators on Jan 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area-terminalinfo-neededIssue requires more information from postertriage-neededNeeds assignment to the proper sub-team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions