title: pyqt5: This application failed to start because no Qt platform plugin could be initialized - installation problem?
body: <p>I am working on Ubuntu 18.04 (as a Windows 10 subsystem for linux).
  When I try running code that uses pyqt5 it throws the error:</p>
  <p>&quot;
  qt.qta.xcb: could not connect to display</p>
  <p>qt.qpa.plugin: Could not load the Qt platform plugin &quot;xcb&quot; in &quot;&quot; even though it was found.
  This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.</p>
  <p>Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.</p>
  <p>Aborted
  &quot;</p>
  <p>as in the image <a href="https://i.stack.imgur.com/veoyT.png" rel="nofollow noreferrer">image of error message</a> (the error is definitely connected to pyqt5).
  I have found many posts that suggest to:</p>
  <ol>
  <li>Go to =&gt; Python38&gt;lib&gt;site-packages&gt;PyQt5&gt;Qt&gt;plugins</li>
  <li>In plugins copy platforms folder</li>
  <li>After that go to Python38&gt;lib&gt;site-packages&gt;PyQt5_tools&gt;Qt&gt;bin</li>
  <li>paste folder here. Do copy and replace.</li>
  </ol>
  <p>but it seems like there is no Qt folder in pyqt5_tools on my computer.
  I have removed and installed back pyqt5, pyqt5-tools, pyqt5-plugins several times but it does not work. Can it be connected to the fact that I am using a subsystem? (I have downloaded pyqt5 both on Windows and on Ubuntu). Any suggestions to solve this problem?</p>