0

我一直在尝试在虚拟环境中的 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 会起作用。

4

1 回答 1

0

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

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

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

于 2017-08-15T10:51:59.373 回答