windows 下使用 conda activate 异常
一、要使用 cmd 而不是 Powershell
shift + 右键,选择“在此处打开 Powershell 窗口”
输入 cmd,回车,使用 cmd
二、修改环境变量配置
错误提示:
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.
注:当出现上面这个错误提示时,说明环境变量配置错了,环境变量不要配置 Scripts 目录,而要配置 condabin 目录