简体   繁体   English

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

[英]Error while trying to install PyQt designer on Macbook

I have installed PyQt5 on my Macbook, however when I try and run the command to install the tools, I am getting an error as follows:我已经在我的 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)

Here is the full input and output:这是完整的输入和 output:

(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.

I have tried downloading QT designer from its website, but since I want it for personal use, I am not able to get it (it requires company information)我曾尝试从其网站下载 QT 设计器,但由于我想要它供个人使用,我无法获得它(它需要公司信息)

So it turns out that pyqt5-tools is only available for Windows as seen on their site: https://pypi.org/project/pyqt5-tools/所以事实证明,pyqt5-tools 仅适用于 Windows,如其网站所示: https://pypi.org/project/pyqt5-tools/

Try an alternative such as QT-creator for Mac: https://www.qt.io/download尝试替代方案,例如 Mac 的 QT-creator: https://www.qt.io/download

This post strongly supports using Homebrew: Python PyQt on macOS Sierra这篇文章强烈支持在 macOS Sierra 上使用 Homebrew:Python PyQt

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM