今天在docker 容器里面创建了一个conda 的虚拟环境 出现如下错误,
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'.
记录下解决办法 原因是activate 命令没有激活
一条命令
source activate