在服务器端创建好新的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
如下图: