terminal can't activate base automatically (conda)
0
0
Entering edit mode
2.7 years ago
Binghong ▴ 20

Hello everyone, the base suddenly can't be activated automatically when I start terminal, it can work before. I have to type bash to activate base now. I have tried

conda config --set changeps1 true
conda config --set auto_activate_base true

but they didn't work. What's wrong with it and how to set to resolve it?

Any guidance is appreciated!

conda • 2.2k views
ADD COMMENT
0
Entering edit mode

What is the output of cat ~/.condarc? You can try and add to that file auto_activate_base: true manually.

ADD REPLY
0
Entering edit mode

the output is

show_channel_urls: true
changeps1: true
auto_activate_base: true
ADD REPLY
0
Entering edit mode

Have you verified that the base environment is indeed not being activated - through, say, unavailable binaries or missing PATH locations, or are you going off the lack of the (base) in your $PROMPT? If it's the latter, there could be something wrong with your $PROMPT.

ADD REPLY
0
Entering edit mode

I have met the same problem.

I run the command conda config --set auto_activate_base true and confirm that the config file have already changed to TRUE.

But every time I start terminal, it doesn't automatically activate base environment and I can't use conda command. Have you already solved this problem? or do you have some clues to it? Thank you very much and looking forward to you reply ^_^

ADD REPLY
0
Entering edit mode

Not sure if this will help, but conda provides some code to add to ~/.bashrc/~/.zshrc that it reads on startup. Maybe that's missing in your setup?

ADD REPLY

Login before adding your answer.

Traffic: 2615 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6