第二次尝试问这个问题。先前的尝试被引用到另一个无帮助/不相关的线程,并在2分钟内被@eyllanesc关闭。
Linux的新用户尝试在运行Ubuntu的RPi克隆上安装PyQt5。 Python 3.5.1
sudo pip3 install PyQt5
获取车轮需求后,它会准备车轮元数据并失败。
Collecting PyQt5
Using cached https://files.pythonhosted.org/packages/3a/fb/eb51731f2dc7c22d8e1a63ba88fb702727b324c6352183a32f27f73b8116/PyQt5-5.14.1.tar.gz
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 /usr/local/lib/python3.5/dist-packages/pip/_vendor/pep517/_in_process.py prepare_metadata_for_build_wheel /tmp/tmp4804t8mc
cwd: /tmp/pip-install-2z60e9q9/PyQt5
Complete output (31 lines):
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/pip/_vendor/pep517/_in_process.py", line 103, 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'
我尝试禁用缓存。我有限的Linux经验可能是一个促成因素,尽管我已经在许多其他机器上成功地做到了这一点。