title: How do I update PyQt5?
body: <p>I have an apparently older version of PyQt5 installed on my Xubuntu (Voyager). When I print the <code>PYQT_VERSION_STR</code>, it displays: <code>'5.2.1'</code>. I downloaded the latest PyQt5 release form here: <a href="http://sourceforge.net/projects/pyqt/files/PyQt5/PyQt-5.4/" rel="nofollow">http://sourceforge.net/projects/pyqt/files/PyQt5/PyQt-5.4/</a>
  I configured it, make and make installed it, everything went according to plan. However, if I print the <code>PYQT_VERSION_STR</code> again, it still outputs <code>'5.2.1'</code>.</p>
  
  <p>How do I tell my python3.4 to use the updated version?</p>
  
  <p>(Shouldn't the reinstall of the new version overwrite the other one? I don't understand why it is still showing 5.2.1 as version string.)</p>
  
  <p><strong>EDIT #1:</strong></p>
  
  <p><code>sys.path</code>:
  ['', '/home/user/.pythonbrew/lib', '/usr/lib/python3.4', '/usr/lib/python3.4/plat-x86_64-linux-gnu', '/usr/lib/python3.4/lib-dynload', '/usr/local/lib/python3.4/dist-packages', '/usr/lib/python3/dist-packages']</p>
  
  <p><code>PyQt5.__file__</code>
  '/usr/lib/python3/dist-packages/PyQt5/<strong>init</strong>.py'</p>
  
  <p>So it seems my python is using the version from the repositories, except if that's where it got installed when make installing.</p>
  
  <p><strong>EDIT #2:</strong></p>
  
  <p>It seems that the <code>PYQT_VERSION_STR</code> returns the version of Qt (!) which the PyQt5 configuration before making and make installing found. So the actual issue seems to be with my Qt5 version, which is <code>5.2.1</code> according to the output of <code>python configure</code> of PyQt5:</p>
  
  <pre><code>Querying qmake about your Qt installation...
  Determining the details of your Qt installation...
  This is the GPL version of PyQt 5.4 (licensed under the GNU General Public License) for Python 3.4.0 on linux.
  
  Type 'L' to view the license.
  Type 'yes' to accept the terms of the license.
  Type 'no' to decline the terms of the license.
  
  Do you accept the terms of the license? yes
  Found the license file pyqt-gpl.sip.
  Checking [...]
  
  
  DBus v1 does not seem to be installed.
  Qt v5.2.1 (Open Source) is being used.
  The qmake executable is /usr/bin/qmake.
  Qt is built as a shared library.
  SIP 4.16.5 is being used.
  The sip executable is /usr/bin/sip.
  These PyQt5 modules will be built: QtCore, QtGui, QtNetwork, QtOpenGL,
  QtPrintSupport, QtQml, QtQuick, QtSql, QtTest, QtWidgets, QtXml, QtDBus, _QOpenGLFunctions_2_0.
  
  The PyQt5 Python package will be installed in /usr/lib/python3.4/site-packages.
  PyQt5 is being built with generated docstrings.
  PyQt5 is being built with 'protected' redefined as 'public'.
  The Designer plugin will be installed in
  /usr/lib/x86_64-linux-gnu/qt5/plugins/designer.
  The qmlscene plugin will be installed in
  /usr/lib/x86_64-linux-gnu/qt5/plugins/PyQt5.
  The PyQt5 .sip files will be installed in /usr/share/sip/PyQt5.
  pyuic5, pyrcc5 and pylupdate5 will be installed in /usr/bin.
  The interpreter used by pyuic5 is /usr/bin/python3.
  Generating the C++ source for the QtCore module...
  Embedding sip flags...
  Generating [...]
  
  Re-writing
  /home/xiaolong/Downloads/PyQt-gpl-5.4/examples/quick/tutorials/extending/chapter6-plugins/Charts/qmldir...
  Generating the top-level .pro file...
  Making the pyuic5 wrapper executable...
  Generating the Makefiles...
  </code></pre>
  
  <p>So the PyQt5 is going into the correct directory, but the actual version of Qt5 is older than 5.4. Now the question seems turns into "How do I update my Qt5 version?" unless I misunderstood something here.</p>
  
  <p><strong>EDIT #3:</strong></p>
  
  <p>Output of <code>sys.executable</code>:</p>
  
  <pre><code>Python 3.4.0 (default, Apr 11 2014, 13:05:11) 
  [GCC 4.8.2] on linux
  Type "help", "copyright", "credits" or "license" for more information.
  &gt;&gt;&gt; import sys
  &gt;&gt;&gt; sys.executable
  '/usr/bin/python3'
  &gt;&gt;&gt; 
  </code></pre>
  
  <p><strong>EDIT #4:</strong></p>
  
  <p>Contents of my <code>.bash_aliases</code> file:
  <code>
  alias python=python3
  alias pip=pip3
  </code></p>