Loading... ## 前言 这PyQt6安装好后再安装PyQt6发现安装不上,报了一个数据错误 ### 错误代码和截图 ```python 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 "D:\Python\Python310\lib\site-packages\pip\_vendor\pep517\in_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' During handling of the above exception, another exception occurred: Traceback (most recent call last): #该部分代码省略...... [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details. ``` ![错误截图](https://img.03e.cn/images/2022/07/05/20220705124556.png) ## 解决方案 这个问题的主要原因就是因为版本过高引起的,我现在是3.10的版本,再安装了一个3.8的时候就可以安装了,主要的原因就是这个。 如果你有更好的解决方法可以评论留言~ 本文作者: 秋 本文地址:https://www.03e.cn/75.html 版权声明:本博客所有文章除特别声明外,均默认采用 CC BY-NC-SA 4.0 许可协议。 最后修改:2022 年 10 月 03 日 © 允许规范转载 打赏 赞赏作者 支付宝微信 赞 12 如果觉得我的文章对你有用,请随意赞赏
1 条评论
我的python是3.8 32位的,安装pyqt6也报错,不知道怎么弄啊