Window安装WSL2,在Pycharm中运行WSL项目及图形化界面方法
前言
折腾了好一会,记录一下
一、安装WSL
- 前提,操作系统版本大于1903
-
以管理员的身份打开运行
Windows PowerShell
-
运行命令启用适用于Linux的Windows子系统
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
- 运行命令启用虚拟化
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
-
下载Linux内核的更新升级包并进行安装,下载地址:https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi
(出现This update only applies to machines with the window