-
Notifications
You must be signed in to change notification settings - Fork 80
Installation
Marcus Ottosson edited this page Feb 4, 2015
·
14 revisions
You have two options for getting PyQt5 installed on your system.
- Install from PyPI
- Clone from GitHub
To install via PyPI, simply run pip
.
$ pip install python-qt5
Alternatively, you may choose to clone from GitHub.
$ git clone https://github.com/pyqt/python-qt5.git
The fully emulate what pip
does for you, there's one more thing you'll need to be aware of.
pip
installs a file - qt.conf
- at the root of the Python directory which is responsible for telling the PyQt5 run-time about where to find QML libraries. Without it, you might have trouble using PyQt5.
To emulate this, you can add the following environment variable.
# Replace with actual path
$ set QML2_IMPORT_PATH=c:\github\python-qt5\PyQt5\qml
Welcome to the wiki for PyQt5 using Python 2.7. For Python 3.4, head here
Table of contents
Developer Resources
Compilation Instructions