windows上怎么安装pyqt4?(python3+)

2025-11-01 05:21:05

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、这是什么原因。

我的python是3.6.5版本,难道必须使用3.6.0版本的吗?

试一下,卸载python3.6.5,安装3.6.0。

为什么卸载python,因为:

卸载容易;

pyqt4没有python3.6.5对应的。

windows上怎么安装pyqt4?(python3+)

9、再使用pip安装。

成功了。

windows上怎么安装pyqt4?(python3+)

windows上怎么安装pyqt4?(python3+)

windows上怎么安装pyqt4?(python3+)

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢