Windows: 每当打开终端时,Anaconda基本环境会自动激活。

huangapple go评论92阅读模式
英文:

Windows: Anaconda base environment automatically gets activated whenever terminal is opened

问题

每当我打开终端时,基本的 conda 环境就会像下面这样被激活:

(base) PS C:\Users\surya>

然后我会运行 conda deactivate 来退出 conda。甚至尝试删除与 conda 相关的 PATH 变量,但没有帮助。

英文:

Whenever I open my terminal, the base conda environment gets activated like below:

(base) PS C:\Users\surya>

And I used to run conda deactivate to come out of conda. Even tried removing conda related PATH variables but doesn't help.

答案1

得分: 0

通过设置以下配置来修复此问题。在以管理员身份打开终端后运行以下命令。

conda config --set auto_activate_base false

然后重新启动终端以使更改生效。可以通过运行conda config --show来验证配置。

英文:

Fixed this by setting the below config. Run this command after opening the terminal as Administrator.

conda config --set auto_activate_base false

Then restart the terminal for the changes to be effective. The config can be verified by running conda config --show

huangapple
  • 本文由 发表于 2023年6月8日 21:22:02
  • 转载请务必保留本文链接:https://go.coder-hub.com/76432295.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定