1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] Keep conda environment of parent bash session when start a new bash session

Discussão em 'Python' iniciado por Stack, Novembro 27, 2025.

  1. Stack

    Stack Membro Participativo

    Suppose my current activated conda environment is py314 on Linux. When I start a new bash environment from the current one, no matter via command bash, screen, or start vscode from command line, the new bash terminal will be set back to base again.

    I hope that the conda environment in new bash session should be the same of its parent, so that I don't have to manually change it to the right one every time.

    This is extremely annoy when using with vscode and copilot, as copilot will execute command in terminal and the wrong conda env will introduce unexpected errors.

    Continue reading...

Compartilhe esta Página