How do I prevent Conda from activating the base environment by default?

I have conda 4.6 with a similar block of code that was added by conda. In my case, there’s a conda configuration setting to disable the automatic base activation:

conda config --set auto_activate_base false

The first time you run it, it’ll create a .condarc in your home directory with that setting to override the default.

This wouldn’t de-clutter your .bash_profile but it’s a cleaner solution without manual editing that section that conda manages.

Leave a Comment