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

烈酒焚心 提交于 2019-12-24 20:54:26

问题


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

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.


回答1:


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.

You can find some precompiled packages at Unofficial Windows Binaries for Python Extension Packages.



来源:https://stackoverflow.com/questions/45686198/issues-with-pyqt4-sip-on-windows-10-could-not-find-a-version-that-satisfies-t

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!