首页 > 解决方案 > 无法安装 pyqt5-tools - '找不到满足 pyqt5-tools 要求的版本'

问题描述

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

pip install pyqt5-tools

结果是:

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

ERROR: No matching distribution found for pyqt5-tools

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

我试过下载不同的包,但任何与 PyQt 相关的东西都失败了……它发生在我的 Mac 和 Ubuntu 机器上。

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

标签: pythonpippyqt5

解决方案


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

sudo apt install pyqt5-dev-tools pyqt5-dev

你可以在

/usr/lib/x86_64-linux-gnu/qt5/bin/designer

推荐阅读