WSL2 Configuration
install WSL2 in Win10
- open
powershell
as administrator. winver
to check your Windows version.wsl -l -o
to check all available distribution package.wsl --install -d <distribution>
to install specified Linux version.- (Optional) if you want to connect to your WSL via VScode, check this
plugin
Remote-WSL
install Anaconda in WSL2
- update
sudo apt update; sudo apt upgrade
- check the download link
- install via
wget
, eg.wget https://repo.anaconda.com/archive/Anaconda3-2022.05-Linux-x86_64.sh
- run the installer script to install Anaconda. (remember to run
conda init
)