conda activate xxx报错

367 阅读1分钟

conda activate xxx报错

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

根据提示运行命令

conda init cmd.exe

或者

conda init powershell

注意:要重启cmd或者powershell