Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save y56/2206619b6de7327cd71fdaa7c2ca1994 to your computer and use it in GitHub Desktop.
Save y56/2206619b6de7327cd71fdaa7c2ca1994 to your computer and use it in GitHub Desktop.
How do I prevent Conda from activating the base environment by default?
https://stackoverflow.com/questions/54429210/how-do-i-prevent-conda-from-activating-the-base-environment-by-default
==
I recently installed anaconda2 on my Mac. By default Conda is configured to activate the base environment when I open a fresh terminal session.
I want access to the Conda commands (i.e. I want the path to Conda added to my $PATH which Conda does when initialised so that's fine).
But I don't ordinarily program in python, and I don't want Conda to activate an environment by default.
When first executing conda init from the prompt, Conda adds the following to my .bash_profile:
==
conda config --set auto_activate_base false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment