During a PyQt webinar, the installation of PyQt was the first topic of discussion, This is the first step that we need to get started with to build any applications. In this tutorial, I will explain how to install PyQt6 on different platforms.
What is PyQt6?
Before getting into installation, let’s clarify what PyQt6 is. PyQt6 is the latest version of PyQt, a set of Python bindings for The Qt Company’s Qt application framework. It enables you to create applications with a native look and feel on all supported platforms while using Python, one of America’s most popular programming languages.
PyQt6 offers several advantages over its predecessors:
- Modern UI capabilities aligned with Qt6
- Improved performance
- Better high DPI support
- Enhanced Python 3 integration
- Improved type hinting
Read Create QLineEdit Widget in PyQt6
Prerequisites for PyQt6 Installation
Before we begin, ensure you have:
- Python 3.6.1 or newer (Python 3.9+ recommended)
- Pip (Python package installer)
- Basic knowledge of command-line operations
- Administrator/sudo privileges (for system-wide installation)
To check your Python version, open your terminal or command prompt and type:
python --versionNow, let’s proceed with platform-specific installation instructions.
Check out Create QPushButton Widget in PyQt6
Install PyQt6 on Windows
Let us see different ways of installing PyQt6 on Windows.
Method 1: Use Pip (Recommended)
The simplest way to install PyQt6 on Windows is to use pip:
- Open Command Prompt as Administrator
- Execute the following command:
pip install PyQt6Refer to the screenshot below to see the installation process.

- To verify the installation:
python -c "import PyQt6.QtCore; print(PyQt6.QtCore.QT_VERSION_STR)"Method 2: Use Anaconda on Windows
If you’re using Anaconda (popular among data scientists in places like Boston and Chicago):
- Open Anaconda Prompt
- Run:
conda install -c anaconda pyqt- Verify with:
python -c "import PyQt6.QtCore; print(PyQt6.QtCore.QT_VERSION_STR)"Read Create QLabel Widget in PyQt6
Method 3: Build from Source on Windows
For advanced users who need custom configurations:
- Download Qt6 from the official website
- Download the SIP and PyQt6 source code
- Install Visual Studio Build Tools
- Follow the compilation instructions in the PyQt6 documentation
Install PyQt6 on macOS
Let us see different ways of installing PyQt6 on macOS.
Method 1: Use Pip on macOS
- Open Terminal
- Run:
pip3 install PyQt6- Verify with:
python3 -c "import PyQt6.QtCore; print(PyQt6.QtCore.QT_VERSION_STR)"Check out Basic Widgets in PyQt6
Method 2: Use Homebrew on macOS
Homebrew is a popular package manager for macOS, especially among developers in Silicon Valley:
- Install Homebrew if not already installed:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"- Install PyQt6:
brew install pyqt@6- Link Python to PyQt6:
brew link pyqt@6- Verify installation:
python3 -c "import PyQt6.QtCore; print(PyQt6.QtCore.QT_VERSION_STR)"Check out Create Icons for Windows in PyQt6
Install PyQt6 on Linux (Ubuntu/Debian)
Let us see different ways of installing PyQt6 on Linux.
Method 1: Use Pip on Ubuntu/Debian
- Update your package lists:
sudo apt update- Install PyQt6 dependencies:
sudo apt install python3-pip python3-dev- Install PyQt6:
pip3 install PyQt6- Verify installation:
python3 -c "import PyQt6.QtCore; print(PyQt6.QtCore.QT_VERSION_STR)"Method 2: Use System Packages on Ubuntu/Debian
- Install the system packages:
sudo apt update
sudo apt install python3-pyqt6- Verify the installation:
python3 -c "import PyQt6.QtCore; print(PyQt6.QtCore.QT_VERSION_STR)"Read Types of Windows in PyQt6
Install Additional PyQt6 Components
PyQt6 has several optional components you might want to install:
PyQt6 Tools for Designer and Other Qt Tools
pip install pyqt6-toolsQScintilla for Advanced Text Editing
pip install QScintillaPyQt6-Charts for Data Visualization
pip install PyQt6-ChartsTroubleshoot Common PyQt6 Installation Issues
Let us learn how to troubleshoot some commonly faced issues during installation.
Missing Dependencies
If you encounter errors about missing dependencies:
pip install PyQt6-sipCheck out Create a Basic Window in PyQt6
Qt Designer Not Found
For Windows users:
- Check the Scripts folder in your Python installation
- Add it to your PATH environment variable
ImportError: DLL load failed
This common error on Windows can be resolved by:
- Installing Visual C++ Redistributable
- Reinstalling PyQt6 with:
pip uninstall PyQt6 PyQt6-Qt6 PyQt6-sip
pip install PyQt6Conclusion
In this tutorial, I explained how to install PyQt6 on different platforms. I covered installing PyQt6 on Windows, macOS, on Linux and installing some additional PyQt components. I also discussed how to troubleshoot common issues faced during installation.
Related tutorials you may read:

I am Bijay Kumar, a Microsoft MVP in SharePoint. Apart from SharePoint, I started working on Python, Machine learning, and artificial intelligence for the last 5 years. During this time I got expertise in various Python libraries also like Tkinter, Pandas, NumPy, Turtle, Django, Matplotlib, Tensorflow, Scipy, Scikit-Learn, etc… for various clients in the United States, Canada, the United Kingdom, Australia, New Zealand, etc. Check out my profile.