'PyQt4 module not found' - Cannot use PyQt to open a GUI
<p>I am very new to using PyQt4. So far, i have used QtDesigner to create the GUI windows i shall be using for my program. </p>

<p>However, when i run the first bit of python coding to get the user interface to appear, i get an error i cannot find a solution to.</p>

<p>Here's the code:</p>

<pre><code>import sys, os
from PyQt4 import QtCore, QtGui, uic

form_class = uic.loadUiType("HomeScreen.ui") [0]
</code></pre>

<p>All i am trying to do with this is to load a GUI, which is called 'HomeScreen.ui'.</p>

<p>Upon running this code, the python shell returns an error saying:</p>

<pre><code>from PyQt4 import QtCore, QtGui, uic

ImportError: No module named 'PyQt4'
</code></pre>

<p>I have Python 3.5 installed, as well as PyQt v4.11.4 and PyQt5.6.</p>

<p>'QtGui' and 'QtCore' are both saved in a folder called PyQt4 (and PyQt5), which are both stored in the path:
<code>C:\Program Files (x86)\Python\Python35-32\Lib\site-packages</code></p>

<p>I believe this is where third party modules are supposed to be stored, but python can never find the module and i repeatedly get the same error message.</p>

<p>Any help would be appreciated.</p>

<p>I also work in windows and python 3,just run the execute file to install pyqt:</p>

<p><a href="https://sourceforge.net/projects/pyqt/files/PyQt5/PyQt-5.6/" rel="nofollow">https://sourceforge.net/projects/pyqt/files/PyQt5/PyQt-5.6/</a></p>

<p>it works well in my environment</p>

python python-3.x pyqt pyqt4