在windows系统中需要安装安卓子系统,需在windows功能界面中开启Hyper-V选项,而家庭版系统并没有这个选项,需要手动进行开启。
判断计算机是否支持Hyper-V
- 打开“cmd”,运行 systeminfo命令,在最后【Hyper-V要求】中的要求都显示“是”就说明支持Hyper-V

cmd
运行脚本
- 新建1个文本文档
- 将下面的命令复制到文档中并保存
pushd "%~dp0"dir /b %SystemRoot%servicingPackages*Hyper-V*.mum >hyper-v.txtfor /f %%i in ('findstr /i . hyper-v.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%servicingPackages%%i"del hyper-v.txtDism /online /enable-feature /featurename:Microsoft-Hyper-V-All /LimitAccess /ALL
- 更改文档扩展名为“.cmd”
- 在文档上右键,点击以管理员身份运行

以管理员身份运行脚本
- 等待脚本运行结束,最后输入“Y”重启后生效

运行脚本
- 再次查看windows功能界面中就可以看到Hyper-V选项

windows功能界面