问题描述
我在 Windows 上安装了 Python 3.8.已经通过 pip PyQt5 安装,尝试过 PyQt5-tools 但不能.我的 PyQt5 版本是:5.13.1
I have Python 3.8 on Windows.Already installed via pip PyQt5, tried PyQt5-tools but can't.My PyQt5 version is: 5.13.1
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
我检查了 https://pypi.org/project/pyqt5-tools/#文件并按照他们提到的去做:
I checked the https://pypi.org/project/pyqt5-tools/#files and tried as they mention to do:
pip install pyqt5-tools==5.13.1.1.6rc0
或
pip install --pre pyqt5-tools~=5.13.1
给出与上述相同的错误.该站点虽然提到了 Python 3.5、3.6、3.7 和没有 3.8
gives same error as above.The site mentions though Python 3.5, 3.6, 3.7 and no 3.8
我假设是 Python 版本的问题.我对吗?或者它可能与确切的 PyQt5 版本有关?有人可以向我澄清这一点吗?如何解决这个问题?
I am assuming that its the matter of Python version. Am I right?Or maybe it has to do with exact PyQt5 version?Can somebody clarify me this? How to go through this problem?
推荐答案
在 Linux 操作系统(基于 Debian)上使用以下命令
On Linux OSes (Debian Based) Use the following Command
sudo apt-get install qtcreator pyqt5-dev-tools
sudo apt-get install python3-pyqt5
sudo apt-get install qttools5-dev-tools
对于其他平台,请使用网站.您可以从他们的官方页面下载 PyQt,也可以选择 Qt Designer 包.根据您的选择,您必须完成安装过程,如 PyQt 网站中所述.
For other platforms, use the website. You can download PyQt from their official page and opt for the Qt Designer package, too. Depending on your options, you will have to complete the installation process, as mentioned in the PyQt website.
这篇关于如何在 Python 3.8 上安装 PyQt5-tools(我只能看到高达 3.7 的 wersion)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!