1、问题:
当我们在ubuntu里面安装anconda以后,但是不能激活环境,conda deactivate激活不了当前的环境,报错如下:
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'.
2、解决办法:
(1)激活 anaconda 环境
source activate
(2)退出 anaconda 环境
source deactivate
参考:链接