wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh
# yes yes
source ~/.bashrc
rm Miniconda3-latest-Linux-x86_64.sh
# to ensure WSL can start normally without an active conda env
conda config --set auto_activate_base false
installs into /home/<user>/miniconda3
https://gist.github.com/kauffmanes/5e74916617f9993bc3479f401dfec7da
Possibly useful note: do not run the
bash Miniconda3-latest-Linux-x86_64.sh
command withsudo
unless you know the consequences. I did that out of habit, and was unable to access conda without first runningsudo -i
.For anyone who makes a similar mistake, go into the root (`sudo -i'), follow the uninstall procedure, remove the miniconda3 directory inside of root, exit, and then repeat OP's steps without sudo.