尝试在 Macbook 上安装 PyQt 设计器时出错

Error while trying to install PyQt designer on Macbook

我已经在我的 Macbook 上安装了 PyQt5,但是当我尝试 运行 安装工具的命令时,出现如下错误:

ERROR: Could not find a version that satisfies the requirement pyqt5-plugins<5.15.2.3,>=5.15.2.2 (from pyqt5-tools) (from versions: none)
ERROR: No matching distribution found for pyqt5-plugins<5.15.2.3,>=5.15.2.2 (from pyqt5-tools)

这是完整的输入和输出:

(base) _-Air:Chess-Final _$ pip3.7 install pyqt5-tools
Collecting pyqt5-tools
  Using cached pyqt5_tools-5.15.2.3.0.2-py3-none-any.whl (28 kB)
ERROR: Could not find a version that satisfies the requirement pyqt5-plugins<5.15.2.3,>=5.15.2.2 (from pyqt5-tools) (from versions: none)
ERROR: No matching distribution found for pyqt5-plugins<5.15.2.3,>=5.15.2.2 (from pyqt5-tools)
WARNING: You are using pip version 20.2.3; however, version 20.3.3 is available.
You should consider upgrading via the '/usr/local/bin/python3.7 -m pip install --upgrade pip' command.

我试过从它的网站上下载QT designer,但是因为我想要它供个人使用,所以我无法下载它(它需要公司信息)

所以事实证明,pyqt5-tools 仅适用于 Windows,如他们的网站所示:https://pypi.org/project/pyqt5-tools/

尝试替代方案,例如 Mac 的 QT-creator:https://www.qt.io/download

这 post 强烈支持使用 Homebrew:Python PyQt on macOS Sierra