Skip to content
Marcus Ottosson edited this page Mar 31, 2015 · 14 revisions

To install PyQt5 on your system you will need.

  1. Python
  2. Git



Installation

This will install PyQt5 into a local directory.

$ cd c:\github
$ git clone https://github.com/pyqt/python-qt5.git
$ cd python-qt5
$ python -c "import util;util.createqtconf()"

Install globally

To use PyQt5, you will either need to append the \python-qt5 directory to your PYTHONPATH or install it globally like this.

$ python setup.py install



Test

$ set PYTHONPATH=c:\github\python-qt5  # Only if you cloned
$ python
>>> import sys
>>> from PyQt5 import QtWidgets
>>> app = QtWidgets.QApplication(sys.argv)
>>> button = QtWidgets.QPushButton("Hello")
>>> button.setFixedSize(400, 400)
>>> button.show()
>>> app.exec_()



Bugs

Python Qt5 is fully encapsulated and requires no further tweaking. If this isn't true for you, that is a bug and you may submit an issue or pull-request with a fix.

Welcome to the wiki for PyQt5 using Python 2.7. For Python 3.4, head here

Table of contents

Developer Resources

Compilation Instructions

Clone this wiki locally