WSL2 Configuration

install WSL2 in Win10

  1. open powershell as administrator.
  2. winver to check your Windows version.
  3. wsl -l -o to check all available distribution package.
  4. wsl --install -d <distribution> to install specified Linux version.
  5. (Optional) if you want to connect to your WSL via VScode, check this plugin Remote-WSL

install Anaconda in WSL2

  1. update sudo apt update; sudo apt upgrade
  2. check the download link
  3. install via wget, eg. wget https://repo.anaconda.com/archive/Anaconda3-2022.05-Linux-x86_64.sh
  4. run the installer script to install Anaconda. (remember to run conda init)