问题描述
一段时间以来,我一直在尝试在Virtual env的Windows 10下安装SIP和PyQt4 + SIP(旧项目在PyQt4中完成).我开始使用程序包管理器进入PyCharm.我还尝试了命令行.
I have been trying to install SIP and PyQt4 + SIP for a while now under windows 10 in a Virtual env (legacy project so was done in PyQt4). I started in PyCharm using the package manager. I also tried command line.
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可以工作.
Is this because there are no builds out there for SIP and PyQt4? PyQt4 maybe because it is a bit legacy but I would think SIP would work.
推荐答案
好吧,如果项目太旧了,我想它就是Python 2.7.对于小于3.5和 PyPI 处没有二进制文件://pypi.python.org/pypi/PyQt4"rel =" nofollow noreferrer> PyQt4 完全不提供二进制文件.
Well, if the project is so old I guess it's Python 2.7. SIP doesn't have binaries at PyPI for python less than 3.5 and PyQt4 doesn't provide binaries at all.
You have to download sources for SIP and PyQt4 and compile it yourself.
您可以在 Python扩展包的非官方Windows二进制文件中找到一些预编译的包.
这篇关于Windows 10上的PyQt4 + SIP问题:找不到满足SIP要求的版本(来自版本:)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!