Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change default conda environment in Anaconda Prompt?

I have Anaconda installed in my machine with two environments one is base(default) and other is vision.

Whenever I open Anaconda Prompt, it opens in the base environment and I have to change the environment manually using

$ activate vision

So I'm looking for a way to open Anaconda Prompt in my vision environment by default.

Is it possible to do so?

  • OS: Windows10
  • Anaconda: 4.5.11

P.S: I have already gone through the similar question asked here. Accepted answer doesn't provide a solution here as my both python versions are 3.6.

like image 294
Sociopath Avatar asked Oct 04 '18 12:10

Sociopath


1 Answers

Instead of messing with the path and stuff in my .bashrc file, I simply appended the line:

conda activate sdesign

My environment name is sdesign. So it simply activates the environment every time I open a new terminal. Hope that helps.

like image 188
Dustin K Avatar answered Nov 01 '22 11:11

Dustin K