错误描述:
root@cef54a23d0c1:/home/xxx/LightSpeech# conda activate lightspeech
CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
To initialize your shell, run
$ conda init <SHELL_NAME>
Currently supported shells are:
- bash
- fish
- tcsh
- xonsh
- zsh
- powershell
See 'conda init --help' for more information and options.
IMPORTANT: You may need to close and restart your shell after running 'conda init'.
解决
- 查看conda位置:
conda info | grep -i 'base environmet'
source ~/anaconda3/etc/profile.d/conda.sh
conda activate my_env
参考
stackoverflow