CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
If using 'conda activate' from a batch script, change your
invocation to 'CALL conda.bat activate'.
To initialize your shell, run $ conda init <SHELL_NAME>
Currently supported shells are: - bash - cmd.exe - 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 activate创建虚拟环境时,总是会遇到上述提示,找到很多解决办法,但是都没有什么一劳永逸的方案,但我根据看到的一些解决方案加上自己的尝试,发现只要激活环境时不写conda,直接写activate语句时,反而可以解决。
虽然不知道原理,但是黑猫白猫,能抓到耗子的就是好猫!