Using CLI (command line interface)
This requires latest version of windows.
Open up the terminal, paste this command and its done !!! ๐
wsl --install
Using GUI (graphical user interface).
Open the windows start menu and search Turn Windows Features on and off.
Turn on Virtual Machine Platform
, Windows Subsystem for Linux
and click OK
Wait for some time and this will enable necessary features.
You might need to restart your computer before you can start using wsl.