使用conda activate virtual_name时出现以下错误
在这里插入代码片
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'.
解决办法如下:
1.首先终端输入
source activate
2.然后终端输入
source deactivate
3.输入你要激活的虚拟环境指令
conda activate virtual_name