1. PATH环境变量
把condabin目录添加到环境变量中
2. 初始化powershell
2.1 管理员身份运行powershell
win+x 弹出选项
选中 Windows PowerShell(管理员)
2.2 conda init powershell
在打开的powershell中运行conda init powershell
3. 允许执行powershell脚本
powershell默认禁止执行任何powershell脚本,同样以管理员身份打开powershell,执行Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
重新打开powershell即可使用conda命令激活conda环境
参考文章
解决windwos中powershell无法激活conda环境
powershell激活conda失败;无法加载文件 C:\Users\user\Documents\WindowsPowerShell\profile.ps1,因为在此系统上禁止运行脚本