Conda
Set default env to test
activate.py
is hardcoded to emit conda activate base\n
into your shell profile when you evaluate the shell hook produced by conda shell.zsh hook
.
You can suppress this hardcoded "auto-activate base" via:
conda config --set auto_activate_base false
Create test
env:
conda create -n test
Then, in ~/.zshrc
, ~/.bashrc
or wherever you source your shell profile from, you can append the following (after the conda shell hook) to explicitly activate the environment of your choosing:
conda activate test
Then close and reopen the terminal, you will see the test
env is activated by default.