无法安装 pyqt5-tools - '找不到满足 pyqt5-tools 要求的版本'

JSo*_*ard 10 python pip pyqt5

我尝试像这样安装 pyqt5-tools:

pip install pyqt5-tools
Run Code Online (Sandbox Code Playgroud)

结果输出是:

ERROR: Could not find a version that satisfies the requirement pyqt5-tools (from versions: none)

ERROR: No matching distribution found for pyqt5-tools
Run Code Online (Sandbox Code Playgroud)

我需要下载 pyqt5-tools,因为我正在尝试学习如何使用 PyQt 制作 GUI(我是一名初学者程序员)。

我尝试下载不同的软件包,但与 PyQt 相关的任何内容都失败了......它发生在我的 Mac 和 Ubuntu 机器上。

我已经检查了 PyPI 上的软件包是否可用,并将安装命令从网站复制粘贴到终端中,以确保我没有做错。

小智 9

如果您使用的是 Windows,pip install PyQt5Designer请改用。


Sum*_*eet 7

假设您正在为 qtdesigner 安装它。您可以通过包管理器安装它。我已经在我的 Debian 机器上安装了它

sudo apt install pyqt5-dev-tools pyqt5-dev
Run Code Online (Sandbox Code Playgroud)

你可以在

/usr/lib/x86_64-linux-gnu/qt5/bin/designer
Run Code Online (Sandbox Code Playgroud)


小智 7

你可以下载pyside2,它几乎包含了pyqt5-tools中的所有内容;pyqt5、pyuic5 和 qdesigner

pip install PySide2
Run Code Online (Sandbox Code Playgroud)


bra*_*sFX 3

pyqt5-tools 仅适用于 Windows,如其网站所示:https ://pypi.org/project/pyqt5-tools/

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

这篇文章强烈支持在 macOS Sierra 上使用 Homebrew:Python PyQt