PowerShell配置Conda (强迫症取消base)

首先,下载安装anaconda,正常流程。 然后,将conda的路径添加到系统环境path或者用户path中。 以上都是常规操作。 然后打开powershel

首先,下载安装anaconda,正常流程。
然后,将conda的路径添加到系统环境path或者用户path中。
以上都是常规操作。

然后打开powershell,输入conda init powershell,这样powershell就能用conda了。

不过此时打开powershell就会出现(base)这个虚拟环境,我这个强迫症受不了。

然后我就运行conda init powershell找到powershell的配置文件位置,我的为

no change	D:\Users\xxx\Documents\WindowsPowerShell\profile.ps1
no change	D:\Users\xxx\Documents\PowerShell\profile.ps1

只需要在这两个文件中,最后面加入conda deactivate,以后打开powershell就不会出现虚拟环境(base)了。