一、首先安装WSL,接着给WSL装个GUI 图形界面(安装xfce),最后通过MobaXterm去访问。参考链接如下:
https://zhuanlan.zhihu.com/p/476595934
二、wsl gui 如何运行 pyqt5?
wsl gui 运行 pyqt5_jingxindeyi的博客-CSDN博客_wsl pyqt
demo效果如下:
三、遇到问题:
(1)如果运行时报错 the xcb plugin is installed and could not initialize
在Ubuntu(WSL2)上使用PyQt5时,GUI周围出现错误 | 码农家园
(2)WSL启动Qt报错 qt.qpa.xcb: could not connect to display
WSL启动Qt报错 qt.qpa.xcb: could not connect to display :0.0_ClamReason的博客-CSDN博客