-
Notifications
You must be signed in to change notification settings - Fork 81
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-qt5Alternatively, you may choose to clone from GitHub.
$ git clone https://github.com/pyqt/python-qt5.gitThe 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\qmlWelcome to the wiki for PyQt5 using Python 2.7. For Python 3.4, head here
Table of contents
Developer Resources
Compilation Instructions