安裝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.
[參考]