First of all confirm that you have windows Version 1903 or higher, with Build 18362 or higher. & That virtualization technology is enabled from BIOS/UEFI
- Run the following commands in a powershell window as admin & Reboot your pc
$ dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
$ dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
- Install the wsl package on windows Download