Correct Fix
(works for versions >= 4.6)
find . -type f -name 'conda'
check where the conda binary is and thene cd to it or just give the complete path and run
conda config --set auto_activate_base true
To deactivate just do the same but with false. Obviously:
conda config --set auto_activate_base false
Quick & Dirty Fix #1
Paste the following into your .bashrc, replace with the obvious and source your .bashrc (source .bashrc
). Should work for Miniconda3 version >= 4.6
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/home/<YOUR_USER>/miniconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/home/<YOUR_USER>/miniconda3/etc/profile.d/conda.sh" ]; then
. "/home/<YOUR_USER>/miniconda3/etc/profile.d/conda.sh"
else
export PATH="/home/<YOUR_USER>/miniconda3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<
This is a cut and paste from my own .bashrc, you can remove the comments but I find them handy as delimiters.
Quick & Dirty Fix #2
Remove the whole thing with your favourite removal command (rm -rf ~/miniconda3
), run the install script again and pay attention to the prompt as it will aks you if you want to autostart it.
Whatever rocks your boat :)