在自己的用户文件夹下找到Powershell的配置文件
C:\Users\Administrator\Documents\PowerShell
打开Microsoft.PowerShell_profile.ps1
进行编辑
在末尾加上下面代码即可
#region conda initialize
# !! Contents within this block are managed by 'conda init' !!
(& "D:\anaconda3\Scripts\conda.exe" "shell.powershell" "hook") | Out-String | Invoke-Expression
#endregion