配置好虚拟环境后使用 conda activate <环境名字>后出现错误:
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
- powershellSee 'conda init --help' for more information and options.
IMPORTANT: You may need to close and restart your shell after running 'conda init'.
解决:
# 重新进入虚拟环境
source activate
# 重新退出虚拟环境
source deactivate