I don’t use WSL but I gave it a try and got the SITL running using the steps below. However, neither the console nor map appeared, so need to fix something later.
1 https://docs.microsoft.com/en-us/windows/wsl/install
2 https://docs.microsoft.com/en-us/windows/wsl/setup/environment
3 Confirm in Windows Features is checked on
4 system reboot
5 wsl --install -d Ubuntu-20.04
6 un/pw
7 sudo apt update && sudo apt upgrade -y
8 sudo apt install build-essential manpages-dev git -y
9 sudo apt-get install python3-dev python3-pip -y
10 sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 10 (Note: ensure two dashes)
11 sudo apt-get install python3-opencv python3-wxgtk4.0 -y
12 sudo apt install python3-matplotlib python3-lxml -y
13 sudo apt install python3-serial python3-scipy python3-pexpect python3-tk -y
14 sudo apt install screen
15 python3 -m pip install -U pygame --user (Note: ensure two dashes)
16 pip3 install PyYAML mavproxy
17 python -m pip install empy
18 echo “export PATH=$PATH:$HOME/.local/bin” >> ~/.bashrc
19 source ~/.bashrc
20 sudo usermod -a -G dialout $USER
21 sudo apt remove modemmanager -y
22 cd ~
23 mkdir drone
24 sudo echo “export drone= /home/$USER/drone” >> ~/.bashrc
25 source ~/.bashrc
26 mkdir apm
27 cd apm
28 git clone -b Copter-4.2.2 https://github.com/ardupilot/ardupilot
29 cd ardupilot
30 git submodule update --init --recursive (Note: ensure two dashes)
31 sudo -H pip3 install dronekit==2.9.2
32 cd ~
33 sudo -H pip3 install dronekit==2.9.2
34 sudo -H pip3 install dronekit-sitl==3.3.0
35 mkdir drone/dk
36 To launch SITL
cd ~/drone/apm/ardupilot/ArduCopter
…/Tools/autotest/sim_vehicle.py --console -S 3 --aircraft=Copter1 --out xx.x.x.xxx:14551 [use host ip]