This is a test version of Biostars. For the public version, visit https://www.biostars.org.
terminal can't activate base automatically (conda)

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

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

the output is

show_channel_urls: true
changeps1: true
auto_activate_base: true

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.

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 ^_^

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?

I ran into the same problem recently. I tried:

conda config --set auto_activate_base true

Then I checked the ~/.condarc file. After that, I ran:

conda init

This returns no change for all files except ~/.bashrc, which was marked as modified since it added the # >>> conda initialize >> block to the file. Finally, I ran:

source ~/.bashrc

0 answers

No answers yet.

Log in to answer this question.