CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.解决方案

系统提示:

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
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’.

可以看到,系统给出的解决方案是命令‘CALL conda.bat activate’,但是我在shell中运行此命令时,提示:
在这里插入图片描述

****解决方案**:**

先查看系统的环境变量,找到anaconda的安装目录,然后将shell当前路径移动到anaconda安装目录下的 condabin文件夹,再执行‘ CALL conda.bat activate’,然后 重启shell,问题得到解决!

你可能感兴趣的:(Python,Anaconda,conda.bat)