TL;DR

  1. Install VcXsrv.

  2. Install PyQT

  3. Add following to shellrc

    1
    
    export DISPLAY=`grep -oP "(?<=nameserver ).+" /etc/resolv.conf`:0.0
    
  4. Open win firewall by: Windows Security -> Firewall & network protection -> Allow an app through firewall -> make sure VcXsrv has both public and private checked. (When Launching xlaunch first time, you might get a prompt to allow through firewall.

  5. Launch XLaunch with “Disable access control” ticked

Reference