0

This is under macOS Big Sur 11.1, with zsh as the shell (and oh-my-zsh) after a new Anaconda 3 installation.

Since I do not always want to be using the conda/anaconda python distribution to be used (sometimes I want to be using MacPorts python), in the base environment I executed command:

conda config --set auto_activate_base False

How do I activate the conda base configuration in a Terminal session "on demand", now that the conda command is no longer automatically available there?

murray
  • 737
  • 2
  • 10
  • 28
  • the `conda activate` command should still be there. Did you run `conda init zsh`? – merv Feb 01 '21 at 20:17
  • Since there is no `conda` command available in zsh at present (after conda config --set auto_activate_base False), I cannot do conda init zsh. – murray Feb 01 '21 at 21:25
  • 1
    Locate the binary, run `conda init zsh`, then restart your shell session. This will add `conda activate` as a shell command to all your interactive `zsh` sessions. See https://stackoverflow.com/a/55526573/570918 – merv Feb 01 '21 at 21:29
  • OK, I ran `source /opt/anaconda3/bin/activate`; then `conda init zsh`; then `conda config --set auto_activate_base False`. Now my original question remains: how do I (easily) get the conda base config in a zsh Terminal session? – murray Feb 01 '21 at 21:37
  • `conda activate` will activate the **base** environment. – merv Feb 01 '21 at 21:37

0 Answers0