小编lin*_*shu的帖子

安装 PyQt5 时元数据生成失败

我有一个与AttributeError: module 'sipbuild.api' has no attribute 'prepare_metadata_for_build_wheel' for PyQt5 5.15.0类似的问题。大多数建议的解决方案是安装最新版本的 pip。但我有最新的 pip 版本(22.0.2),但它仍然无法工作。我正在尝试将其安装在 MacOS 12.1、python 版本 3.8.9 中。

\n

命令输出:

\n
Collecting PyQt5\n  Using cached PyQt5-5.15.6.tar.gz (3.2 MB)\n  Installing build dependencies ... done\n  Getting requirements to build wheel ... done\n  Preparing metadata (pyproject.toml) ... error\n  error: subprocess-exited-with-error\n  \n  \xc3\x97 Preparing metadata (pyproject.toml) did not run successfully.\n  \xe2\x94\x82 exit code: 1\n  \xe2\x95\xb0\xe2\x94\x80> [29 lines of output]\n      Traceback (most recent call last):\n        File "/Users/ashuadhikari/Library/Python/3.8/lib/python/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 156, in prepare_metadata_for_build_wheel\n          hook = backend.prepare_metadata_for_build_wheel\n …
Run Code Online (Sandbox Code Playgroud)

python-3.x pyqt5

12
推荐指数
2
解决办法
4万
查看次数

标签 统计

pyqt5 ×1

python-3.x ×1