I was trying to activate an environment by !conda activate <environment name>
in Google Colab, but it returned error:
CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'. To initialize your shell, run
$ conda init <SHELL_NAME>
...
so I ran !conda init bash
and restarted the kernel to initialise bash. But when I tried !conda activate
again, it returns /bin/bash: conda: command not found
. It seems like all of my environment and conda disappeared in the content folder. How should I change the shell setting back or activate a new environment under such situation?
Thank you!