由于特殊原因,想要在python3.6下安装pyqt4,但是试过pip安装 不可以,另外一种方法是直接下载并安装.wh。
下载地址:http://www.lfd.uci.edu/~gohlke/pythonlibs/#pyqt4, 选择不同的Python版本、windows 64或32。下载后在cmd下cd 进入到下载目录,输入命令,例如:pip install PyQt4-4.11.4-cp36-cp36m-win_amd64.whl。
由于官网速度特别慢,这是python3.6版本对应的.whl文件:https://download.csdn.net/download/js1568/10426237
python3.4版本对应的.whl文件:https://download.csdn.net/download/js1568/10630084
python3.5版本对应的.whl文件:https://download.csdn.net/download/js1568/10630066
python3.7版本对应的.whl文件:https://download.csdn.net/download/js1568/10630058
参考:https://stackoverflow.com/questions/46328034/how-to-install-pyqt4-for-python-3-6-in-windows-10