How to Install PyQt6 in Python
Python bindings for the Qt cross platform application toolkit
pip install PyQt6
What is PyQt6?
Python bindings for the Qt cross platform application toolkit
PyQt6 - Comprehensive Python Bindings for Qt v6
Qt is set of cross-platform C++ libraries that implement high-level APIs for accessing many aspects of modern desktop and mobile systems. These include location and positioning services, multimedia, NFC and Bluetooth connectivity, a Chromium based web browser, as well as traditional UI development.
PyQt6 is a comprehensive set of Python bindings for Qt v6. It is implemented as more than 35 extension modules and enables Python to be used as an alternative application development language to C++ on all supported platforms including iOS and Android.
Quick Start
Minimal example to get started with PyQt6:
import PyQt6
print(PyQt6.__version__)
Installation
pip (standard)
pip install PyQt6
Virtual environment (recommended)
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install PyQt6
pip3
pip3 install PyQt6
conda
conda install -c conda-forge PyQt6
Poetry
poetry add PyQt6
Dependencies
Installing PyQt6 will also install these packages:
Verify the Installation
After installing, confirm the package is available:
python -c "import PyQt6; print(PyQt6.__version__)"
If this prints a version number, installation succeeded. If you see a ModuleNotFoundError, see the errors section below.
Installation Errors
Common errors when installing PyQt6 with pip.
ModuleNotFoundError: No module named 'PyQt6'
Cause: The package is not installed in the current Python environment.
Fix: Run pip install PyQt6. If using a virtual environment, ensure it is activated first.
ModuleNotFoundError: No module named 'PyQt6' (installed but still failing)
Cause: pip installed the package into a different Python than the one running your script.
Fix: Use python -m pip install PyQt6 to install into the interpreter you are running.
ImportError: cannot import name 'X' from 'PyQt6'
Cause: The function or class does not exist in the installed version.
Fix: Check the version with pip show PyQt6 and upgrade with pip install --upgrade PyQt6.
pip: command not found
Cause: pip is not in PATH or Python was not added to PATH during installation.
Fix: Try python -m pip install PyQt6. On macOS/Linux try pip3.
PermissionError: [Errno 13] Permission denied
Cause: No write access to the system Python package directory.
Fix: Use a virtual environment, or add --user: pip install --user PyQt6
SSL: CERTIFICATE_VERIFY_FAILED
Cause: pip cannot verify PyPI's SSL certificate — common behind corporate proxies.
Fix: Try: pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org PyQt6
Recent Releases
| Version | Released |
|---|---|
6.11.0 latest |
2026-03-30 |
6.10.2 |
2026-01-08 |
6.10.1 |
2025-12-06 |
6.10.0 |
2025-10-22 |
6.9.1 |
2025-06-06 |
Manage PyQt6
Upgrade to latest version
pip install --upgrade PyQt6
Install a specific version
pip install PyQt6==6.11.0
Uninstall
pip uninstall PyQt6
Check what is installed
pip show PyQt6