简体   繁体   English

找不到满足 PyQt4 要求的版本(来自版本:)

[英]Could not find a version that satisfies the requirement PyQt4 (from versions: )

When trying to install qt4 for python 2.7 (that I need to run some scripts written by other developers):尝试为 python 2.7 安装 qt4 时(我需要运行一些其他开发人员编写的脚本):

$ sudo pip install PyQt4

Could not find a version that satisfies the requirement PyQt4 (from versions: )
No matching distribution found for PyQt4

Additional information:附加信息:

$ python --version
Python 2.7.15+

$ pip list
Package    Version
---------- -------
numpy      1.16.5 
pip        19.3   
pyqtgraph  0.10.0 
setuptools 41.4.0 
wheel      0.33.6 

Any suggestion on how to install it?关于如何安装它的任何建议?

Please note that I have tried the solution proposed here :请注意,我已经尝试过这里提出的解决方案:

pip install PyQt4-4.11.4-cp35-none-win_amd64.whl

ERROR: PyQt4-4.11.4-cp35-none-win_amd64.whl is not a supported wheel on this platform.

I guess because it is not a windows platform, isn't it?我猜是因为它不是 windows 平台,不是吗? I am trying to install it on XUbuntu 18.04.我正在尝试将它安装在 XUbuntu 18.04 上。

As suggested in one of the comment by @phd "PyQt4-4.11.4-cp35-none-win_amd64.whl is for Python 3.5 and Python 64-bit. You need to download wheel for Python 2.7" . As suggested in one of the comment by @phd "PyQt4-4.11.4-cp35-none-win_amd64.whl is for Python 3.5 and Python 64-bit. You need to download wheel for Python 2.7" .

I have tryed also:我也试过:

$ pip install PyQt4‑4.11.4‑cp27‑cp27m‑win_amd64.whl

Requirement 'PyQt4‑4.11.4‑cp27‑cp27m‑win_amd64.whl' looks like a filename, but the file does not exist
PyQt4‑4.11.4‑cp27‑cp27m‑win_amd64.whl is not a valid wheel filename.

So the question can be: how to install the right version?所以问题可能是:如何安装正确的版本? How to find the right packet?如何找到合适的数据包? My problem is exactly this one: I do not know how to move myself in this big forest.我的问题正是这个:我不知道如何在这片大森林中移动自己。 Thank you for every suggestion.谢谢你的每一个建议。

By default pip looks for project distributions on Pypi .默认情况下pip 在 Pypi查找项目分布。 If you ask for pip install PyQt4 , then you can also manually look at the page for this PyQt4 project on PyPi .如果您要求pip install PyQt4 ,那么您也可以在 PyPi 上手动查看此PyQt4项目的页面 There you will eventually see that there are no distributions at all to download so pip won't be able to install anything on any platform for any Python version at all.在那里,您最终会看到根本没有要下载的发行版,因此pip将无法在任何平台上为任何 Python 版本安装任何东西。 You need to look for alternatives.你需要寻找替代品。

You can have a look at the homepage of the PyQt project and you will eventually find the page to download the PyQt4 source code .您可以查看PyQt 项目的主页,最终会找到下载 PyQt4 源代码的页面。 There is a link on this page for the Linux source code of PyQt4 , so you might want to have a look at it and see if you can get it installed on your system. 此页面上有一个指向 PyQt4 的 Linux 源代码的链接,因此您可能想看看它,看看是否可以将它安装在您的系统上。

Building on sinoroc 's answer: PyQt4 is outdated, and only PyQt6 or PyQt5 are available on PIP.基于sinoroc的回答:PyQt4 已过时,PIP 上只有 PyQt6 或 PyQt5 可用。 See this website .看到这个网站

pip install PyQt6

暂无
暂无

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

相关问题 Windows 10上PyQt4 + SIP的问题:找不到满足SIP要求的版本(来自版本:) - Issues with PyQt4 + SIP on Windows 10: Could not find a version that satisfies the requirement SIP (from versions: ) 找不到满足 optapy 要求的版本(来自版本:无) - Could not find a version that satisfies the requirement optapy (from versions: none) 错误:找不到满足 pyautogui 要求的版本(来自版本:无) - ERROR: Could not find a version that satisfies the requirement pyautogui (from versions: none) 找不到满足 gcc7 要求的版本(来自版本:) - Could not find a version that satisfies the requirement gcc7 (from versions: ) 错误:找不到满足 tensorflow 要求的版本(来自版本:无) - ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none) 错误:找不到满足要求时间的版本(来自版本:无) - ERROR: Could not find a version that satisfies the requirement time (from versions: none) 找不到满足要求的版本 python-firebase(来自版本:) - Could not find a version that satisfies the requirement python-firebase(from versions: ) 找不到满足 easy_install 要求的版本(来自版本:) - Could not find a version that satisfies the requirement easy_install (from versions: ) 错误:找不到满足Deepcorrect要求的版本(来自版本:无) - ERROR: Could not find a version that satisfies the requirement deepcorrect (from versions: none) 找不到满足 DoubleTable 要求的版本(来自版本:无) - Could not find a version that satisfies the requirement DoubleTable (from versions: none)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM