I'm on macOS and in the past, I must have set a permanent conda
environment, such that every time I open a new shell in the terminal, the conda environment
is automatically activated and at the prompt and I have to constantly run conda deactivate
. I want to permanently stop this behavior. I tried conda env remove -n ENV_NAME
as recommended on this thread but this doesn't work. It keeps returning: CondaEnvironmentError: cannot remove current environment. deactivate and run conda remove again
even though I've deactivated before running this.
I would simply just like to log in to the terminal without this conda environment being automatically activated. It can still live on somewhere in my system, I just want to remove it from turning up by default.
EDIT. NEW ISSUES: As mentioned in comments, as based on recommendation to check out the suggested question, I did this, and it has caused new issues so it may be that those are out of date answers or just don't solve my case sufficiently.
These issues are:
Re. conda config --set auto_activate_base false
mentioned in first answer in linked-to question. I ran this command but get this message in the terminal when I open a new session: Conda. Command not found. N/A: version "N/A -> N/A" is not yet installed. You need to run "nvm install N/A" to install it before using it.
This has also completely changed my shell prompt. I got a ?
in the title of the shell open previous to running this command, and hostname changed to some random hotspot user as my location - before my username. So it's worse than before actually.
I've gone into .zshrc and .bashrc and only .zshrc had the conda commands. I deleted all of the conda stuff from .zshrc. The .bashrc doesn't have any conda stuff. Are there any other shell files like these that may exist?
EDIT 2: Problem of side effect issue with conda not found error is now resolved. conda activate command was in my .bashprofile. Didn't remember putting it there as I did it blindly a year ago whilst following a tutorial! Thanks for the help everyone.