首先在开始菜单处键入PowerShell 找到PowerShell 并用管理员身份去打开它:

5dd6220f578cfd7b909af53a5cda0a35_734px-Wsl_002

 然后在窗口允许:Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux:

a2937cbd846896882ff7b6c5c25bdf2d_Wsl_003

 在系统提示下重启电脑。

安装wsl:

https://apps.microsoft.com/search?query=wsl&hl=zh-CN&gl=CN

image

 

4ddb76dd29046a97362e07cb6bc335c4_Wsl_005

 

sudo apt update && sudo apt upgrade