CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.

在服务器端创建好新的anaconda python环境后,激活该新环境时,出现如下错误:

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'.

如图:
在这里插入图片描述
解决方法:

conda decativate

然后正常激活即可:

conda activate tf2.0

如下图:
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/PecoHe/article/details/101930575