pyqt-tools安装报错解决办法

Problem description

​ When I am using pip install pyqt6-tools in pycharm virtual environment,it shows error. image-20240712113149044

Cause analysis

​ If you find an error, you have to find out the reason, so I found the description of the python package of pyqt6-tools, and pyqt5-tools is the same, and found that it only supports versions below Python 10.

image-20240712115538786

Solution

​ Through the official website, we can find the main functions of the pyqt6-tools package:

The PyQt6 wheels do not provide tools such as Qt Designer that were included in the old binary installers. This package aims to provide those in a separate package which is useful for developers while the official PyQt6 wheels stay focused on fulfilling the dependencies of PyQt6 applications.

Both Windows and Linux are supported. Adjust paths etc accordingly if applying the explanations below in Linux rather than Windows. macOS support is incomplete but see issue #12 if you want to discuss it. image-20240712120044914

​ 所以我们直接找到Qt Designer的官网下载对应操作系统的版本即可,本质上Qt Designer就是一个把绘制好的GUI界面转换成对应代码的一个工具,为我们开发节省了大量时间。

下载地址:Qt Designer Download for Windows and Mac