问题
conda activate [env] 无法运行,并要求运行 conda init
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.
conda init 运行以后仍然无法进入虚拟环境
解决方案
- conda init --all --dry-run --verbose
- exec bash
- conda activate [env]