如果不是使用Anaconda Prompt (Anaconda3)窗口,而是使用cmd窗口下conda activate xxx激活某环境,可能报错:
CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
...
IMPORTANT: You may need to close and restart your shell after running 'conda init'.
解决方法:
运行Anaconda Prompt (Anaconda3),
输入conda init cmd.exe
重新开启cmd窗口,执行conda activate xxxx正常。