Skip to content

Instantly share code, notes, and snippets.

@lindacmsheard
Last active November 23, 2022 16:57
Show Gist options
  • Save lindacmsheard/f0714f3e5870491e3f2eaa70ae677a1e to your computer and use it in GitHub Desktop.
Save lindacmsheard/f0714f3e5870491e3f2eaa70ae677a1e to your computer and use it in GitHub Desktop.
Install miniconda on WSL

Install Miniconda on Linux or WSL

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

Notes

installs into /home/<user>/miniconda3

References

https://gist.github.com/kauffmanes/5e74916617f9993bc3479f401dfec7da

@lindacmsheard
Copy link
Author

lindacmsheard commented Nov 23, 2022 via email

@domattioli
Copy link

Possibly useful note: do not run the bash Miniconda3-latest-Linux-x86_64.sh command with sudo unless you know the consequences. I did that out of habit, and was unable to access conda without first running sudo -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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment