-
Notifications
You must be signed in to change notification settings - Fork 79
Installation
Marcus Ottosson edited this page Mar 31, 2015
·
14 revisions
To install PyQt5 on your system you will need.
You've got two options.
C) Pip from GitHub
Pip will install python-qt5 into your site-packages
directory.
$ cd c:\github
$ pip install git+https://github.com/pyqt/python-qt5.git
B) Clone from GitHub
Cloning allows you to install python-qt5 anywhere.
$ git clone https://github.com/pyqt/python-qt5.git
$ cd python-qt5
$ python -c "import util;util.createqtconf()"
$ set PYTHONPATH=c:\github\python-qt5
$ python
>>> import sys
>>> from PyQt5 import QtWidgets
>>> app = QtWidgets.QApplication(sys.argv)
>>> button = QtWidgets.QPushButton("Hello")
>>> button.setFixedSize(400, 400)
>>> button.show()
>>> app.exec_()
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