解决Anaconda自动进入虚拟环境base

安装Anaconda后,每当你启动Termina后会自动进入虚拟环境base,解决方法是用conda config命令:

conda config --set auto_activate_base false

命来来源:

如果你输入:

conda config --describe

你会在下面的一长条描述信息里面看到这样一段:

# # auto_activate_base (bool)
# #   Automatically activate the base environment during shell
# #   initialization.
# # 
# auto_activate_base: true

也就是自动进入base环境,默认是true.

[参考]

  1. https://blog.csdn.net/ben1010101010/article/details/90897405
  2. https://stackoverflow.com/questions/54429210/how-do-i-prevent-conda-from-activating-the-base-environment-by-default
原文地址:https://www.cnblogs.com/wenshinlee/p/12449373.html