CommandNotFoundError: Your shell has not been properly configured to use ‘conda deactivate’.
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’.
意思就是当前 shell 没激活 conda activate 命令,需要激活。
解决方法
激活命令
Windows:conda init <SHELL_NAME>
SHELL_NAME 替换成当前的shell名称,比如 Windows 一般是 conda init cmd
Linux:一般是 source activate