原文:python - conda init powershell has no effect - Stack Overflow
查看是否有powershell配置文件
C:\Users\[YOUR_ACCOUNT_NAME]\Documents\WindowsPowerShell\profile.ps1
如果没有,新建一个
new-item -path $profile -itemtype file -force
然后输入
#region conda initialize
# !! Contents within this block are managed by 'conda init' !!
(& "C:\ProgramData\Miniconda3\Scripts\conda.exe" "shell.powershell" "hook") | Out-String | Invoke-Expression
#endregion
重启即可
用户名包含中文会出现什么问题我不知道 因为我没有 可以点原文链接查看