conda deactivate报错CommandNotFoundError: Your shell has not been properly configured to use ‘conda de

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
参考:链接

猜你喜欢

转载自blog.csdn.net/weixin_56847236/article/details/130678853