【问题标题】:Issues with PyQt4 + SIP on Windows 10: Could not find a version that satisfies the requirement SIP (from versions: )Windows 10 上 PyQt4 + SIP 的问题:找不到满足 SIP 要求的版本(来自版本:)
【发布时间】:2017-08-15 03:48:19
【问题描述】:

我一直在尝试在虚拟环境中的 Windows 10 下安装 SIP 和 PyQt4 + SIP 一段时间(旧项目是在 PyQt4 中完成的)。我从 PyCharm 开始使用包管理器。我也试过命令行。

    C:\Users\jspada>pip install SIP
Collecting SIP
  Could not find a version that satisfies the requirement SIP (from versions: )
No matching distribution found for SIP

C:\Users\jspada>pip install PyQt4
Collecting PyQt4
  Could not find a version that satisfies the requirement PyQt4 (from versions: )
No matching distribution found for PyQt4

这是因为没有针对 SIP 和 PyQt4 的构建吗? PyQt4 可能是因为它有点旧,但我认为 SIP 会起作用。

【问题讨论】:

  • 通常这意味着您的 python 版本没有可用的版本。您使用的是哪种 python,它是 vanilla python 还是来自发行版?

标签: python pip pyqt4 python-sip


【解决方案1】:

好吧,如果这个项目太老了,我猜它是 Python 2.7。对于小于 3.5 的 Python,SIP 在 PyPI 没有二进制文件,PyQt4 根本不提供二进制文件。

你必须下载SIPPyQt4的源码并自己编译。

你可以在Unofficial Windows Binaries for Python Extension Packages找到一些预编译的包。

【讨论】:

    猜你喜欢
    • 2020-02-12
    • 2019-04-15
    • 2016-12-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-20
    • 2020-07-24
    • 1970-01-01
    相关资源
    最近更新 更多