Python安装pyqt5-tools失败

在尝试使用Python 3.10.2进行GUI编程,通过pyqt5-tools时遇到安装失败的问题,报错涉及模块'sipbuild.api'。尝试安装wheel并解决版本兼容性问题,最后发现是Python版本过高导致,通过降级到Python 3.7.6成功解决了安装pyqt5-tools的问题。
摘要由CSDN通过智能技术生成

1.python的版本是3.10.2

2.背景是:想用python+pyqt5来学习python 的GUI编程的,

3.在安装pyqt5-tools时报错如下:

C:Usersj65d5>pip install pyqt5-tools
Collecting pyqt5-tools
Using cached pyqt5_tools-5.15.4.3.2-py3-none-any.whl (29 kB)
Collecting pyqt5==5.15.4
Using cached PyQt5-5.15.4.tar.gz (3.3 MB)
Installing build dependencies … done
Getting requirements to build wheel … done
Preparing metadata (pyproject.toml) … error
error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [29 lines of output]
Traceback (most recent call last):
File “C:Python310libsite-packagespip_vendorpep517in_process_in_process.py”, line 156, in prepare_metadata_for_build_wheel
hook = backend.prepare_metadata_for_build_wheel
AttributeError: module ‘sipbuild.api’ has no attribute ‘prepare_metadata_for_build_wheel’

Du

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值