英文:
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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论