I just updated anaconda from 3.5.7 to 3.5.9 (I believe) via the anaconda GUI. Now, conda doesn’t start.
This is the output I get
$ conda
Traceback (most recent call last):
File "/Users/abc/anaconda3/bin/conda", line 12, in <module>
from conda.cli import main
ModuleNotFoundError: No module named 'conda'
Am on mac and this is how my ~/.bash_profile
looks like currently.
# added by Anaconda3 5.3.0 installer
# >>> conda init >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$(CONDA_REPORT_ERRORS=false '/Users/abc/anaconda3/bin/conda' shell.bash hook 2> /dev/null)"
if [ $? -eq 0 ]; then
\eval "$__conda_setup"
else
if [ -f "/Users/abc/anaconda3/etc/profile.d/conda.sh" ]; then
. "/Users/abc/anaconda3/etc/profile.d/conda.sh"
CONDA_CHANGEPS1=false conda activate base
else
\export PATH="/Users/abc/anaconda3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda init <<<
I have around 3 environments already and I don’t want to lose them all and install anaconda again.
Any idea how to fix this?