Anaconda Python causing slow terminal startup/prompt Anaconda Python causing slow terminal startup/prompt bash bash

Anaconda Python causing slow terminal startup/prompt


I had the same problem and I solved it by recovering my old .bashrc file then I can load the bash configuration file of Anaconda whenever I need it.

To achieve this , follow these steps

  1. Rename your current .bashrc file to something like conda.bashrc by executing these commands in your terminal
cd ~mv .bashrc conda.bashrcmv .bashrc-anaconda3.bak .bashrc
  1. Now, you have to define a custom command in your .bashrc file so it can load Anaconda only when you need it, to do so first you need to open your .bahsrc file in a text editor
gedit .bahsrc
  1. Add the following lines to end of your .bashrc so it can load the other conda.bashrc file which contain anaconda package configurations
alias anaconda='source  conda.bashrc'
  1. save .bahsrc with the above mentioned edits and type in your terminal window
source .bashrc
  1. now you can load anaconda by simply typing anaconda in your terminal window
anaconda


try making default loading of anaconda to False.

conda config --set auto_activate_base false

this loads path for condo only when you run the command conda activate


An alternative approach, which doesn't involve removing Anaconda, is just to update to a more recent version of Anaconda. This can be done from Anaconda Navigator, and bash startup was greatly improved for me.