Registry / web-framework / pyqt5-qt5

pyqt5-qt5

JSON →
library5.15.18pypypiunverified

The `pyqt5-qt5` package bundles a critical subset of the Qt installation required by PyQt5, enabling PyQt5 applications to run without a separate, system-wide Qt installation. It functions primarily as an internal dependency and is typically installed automatically by `pip` when the `PyQt5` package is installed. This package is licensed under the LGPL v3. As of its latest release, the current version is 5.15.18.

pip install pyqt5-qt5
INSTALL
IMPORT
SIG · PYQT5-QT5
P
pyqt5-qt5
web-frameworkpythonv5.15.18
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

The `pyqt5-qt5` package is not directly imported or used by end-user code. Instead, it provides the underlying Qt binaries for `PyQt5`. The quickstart below demonstrates a basic 'Hello World' application using `PyQt5`, which relies on `pyqt5-qt5` for its runtime environment.

import sys from PyQt5.QtWidgets import QApplication, QWidget, QLabel from PyQt5.QtGui import QIcon if __name__ == '__main__': app = QApplication(sys.argv) window = QWidget() window.setWindowTitle('PyQt5 Hello World') window.setGeometry(100, 100, 400, 200) label = QLabel('Hello from PyQt5!', window) label.move(150, 80) window.show() sys.exit(app.exec_())
Debug
Known issues
gotcha`pyqt5-qt5` is an internal dependency containing Qt binaries, not Python modules for direct user import. Attempting to `import pyqt5_qt5` will result in an `ImportError` or unexpected behavior.
fix
Do not import `pyqt5-qt5` directly. All user-facing code should import from `PyQt5` (e.g., `from PyQt5.QtWidgets import QApplication`).
affects: All versions
gotchaIt is highly recommended to install `PyQt5` directly (e.g., `pip install PyQt5`). This will automatically pull in the compatible version of `pyqt5-qt5`. Manually installing `pyqt5-qt5` or installing an incompatible version can lead to runtime errors or crashes.
fix
Always install `PyQt5` as the primary package; let `pip` manage `pyqt5-qt5` as its dependency.
affects: All versions
gotchaThe `pyqt5-qt5` package contains the bundled Qt libraries, making its installation size significant (tens of megabytes to over a hundred, depending on platform and version). This is expected but can impact CI/CD pipelines or environments with limited disk space.
fix
Be aware of the package size during installation. Consider using virtual environments to isolate dependencies.
affects: All versions
deprecated`PyQt5` (and thus `pyqt5-qt5`) is based on Qt 5. For new projects or to leverage the latest Qt features, consider using `PyQt6` (which uses Qt 6 and has its own `pyqt6-qt6` dependency). While much of the `PyQt5` API is similar to `PyQt6`, there are some notable changes in `PyQt6` (e.g., fully qualified enums, `exec()` instead of `exec_()`).
fix
For new development, evaluate `PyQt6`. If migrating from `PyQt5` to `PyQt6`, refer to migration guides for syntax adjustments.
affects: All PyQt5 versions (in context of Qt evolution)
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'PyQt5'
The 'PyQt5' package, which depends on 'pyqt5-qt5', is not installed in the current Python environment.
fix
pip install PyQt5
Could not load the Qt platform plugin 'windows' in ''
The PyQt5 application cannot find or load the necessary Qt platform plugins (e.g., qwindows.dll for Windows or libqxcb.so for Linux) required to render the GUI, often due to an incomplete installation, incorrect environment paths, or missing system dependencies.
fix
Ensure PyQt5 is properly installed (e.g., `pip install --upgrade PyQt5`). If deploying, confirm the 'platforms' directory is accessible to the application or set the `QT_QPA_PLATFORM_PLUGIN_PATH` environment variable to its location.
ImportError: cannot import name 'QWebEngineView' from 'PyQt5.QtWebEngineWidgets'
The 'PyQtWebEngine' package, which provides the QtWebEngineWidgets module and its classes like QWebEngineView, is not installed. 'pyqt5-qt5' provides core Qt components but not all optional modules.
fix
pip install PyQtWebEngine
QApplication: No display specified
The PyQt5 application is attempting to initialize a graphical user interface in an environment without an active display server (e.g., a server via SSH without X-forwarding, or a Docker container).
fix
For GUI applications, ensure a display server (like Xorg) is running or use X-forwarding. For non-GUI tasks, set the environment variable `QT_QPA_PLATFORM=offscreen` before running the application.
Upgrade
Version history
5.15.18latest on PyPI · released Nov 9, 2025
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Resources
pyqt5-qt5 — pip install pyqt5-qt5 · libregistry