繁体   English   中英

Windows 10上PyQt4 + SIP的问题:找不到满足SIP要求的版本(来自版本:)

[英]Issues with PyQt4 + SIP on Windows 10: Could not find a version that satisfies the requirement SIP (from versions: )

我一直在尝试在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 2.7。 对于小于3.5的python,SIP的PyPI中没有二进制文件,而PyQt4根本不提供二进制文件。

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

您可以在非官方Windows二进制文件Python扩展软件包中找到一些预编译的软件包

暂无
暂无

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM