手抄报 安全手抄报 手抄报内容 手抄报图片 英语手抄报 清明节手抄报 节约用水手抄报

windows上怎么安装pyqt4(python3+)

时间:2024-11-01 19:05:33

1、用pip直接安装pyqt4,可能会失败。

windows上怎么安装pyqt4(python3+)

2、这就需要下载模块对应的whl文件。我用的是windows64位系统,python3.6版本,所以下载最后一个。lfd.uci.edu/~gohlke/pythonlibs/#pyqt4

windows上怎么安装pyqt4(python3+)

3、下载之后的whl文件放到电脑桌面上。

windows上怎么安装pyqt4(python3+)

4、打开命令提示符。

windows上怎么安装pyqt4(python3+)

5、把工作目录切换到电脑桌面上。

windows上怎么安装pyqt4(python3+)

6、然后,用pip安装这个whl文件。

windows上怎么安装pyqt4(python3+)

7、结果仍旧安装失败。PyQt4-4.11.4-cp36-cp36m-win_amd64.whl is not a supported wheel on this platform.

windows上怎么安装pyqt4(python3+)

8、这是什么原因。我的p鲻戟缒男ython是3.6.5版本,难道必须使用3.6.0版本的吗?试一下,卸载python3.6.5,安装3.6.0。为什么卸载pyt茑霁酌绡hon,因为:卸载容易;pyqt4没有python3.6.5对应的。

windows上怎么安装pyqt4(python3+)

9、再使用pip安装。成功了。

windows上怎么安装pyqt4(python3+)
windows上怎么安装pyqt4(python3+)
windows上怎么安装pyqt4(python3+)
© 手抄报圈