Successfully installed PyQt-builder-1.13.0 packaging-21.3 ply-3.11 pyparsing-3.0.9 setuptools-65.3.0 sip-6.6.2 toml-0.10.2
Cleaning up...
Removing source in /tmp/pip-install-2gmr_frd/sip
Removed build tracker: '/tmp/pip-req-tracker-vuj8lfsc'
Installing build dependencies ... done
Running command /usr/bin/python3 /tmp/tmppi_h1r7x get_requires_for_build_wheel /tmp/tmpx88x82dh
Getting requirements to build wheel ... done
Created temporary directory: /tmp/pip-modern-metadata-b__1na9b
Running command /usr/bin/python3 /tmp/tmpwp46ffki prepare_metadata_for_build_wheel /tmp/tmpxrg1n2t9
Querying qmake about your Qt installation...
This is the GPL version of PyQt 5.15.7 (licensed under the GNU General Public License) for Python 3.8.2 on linux.
Type 'L' to view the license.
Type 'yes' to accept the terms of the license.
Type 'no' to decline the terms of the license.
但我什么字都打不出来,就停在那儿了。这是一台aarch64机器。
发布于 2022-10-14 15:03:36
我也有同样的问题,因为我的平台没有车轮安装(Macbook w/ OSX Arm64)。当pip没有可以工作的轮子时,它会尝试从源代码编译。通过将一个--配置-设置参数传递给pip,您可以将一个参数传递给configure.py,该参数将在编译期间使用。幸运的是,pyqt有一个参数可以自动接受许可证--确认许可。但是,pip需要Key=value表单中的参数,因此您需要传递--确认-许可=(即没有值),并且它将工作。这花了一段时间(关于30+ min),但我终于安装了pyqt5。
下面是我使用的命令:
pip3 install pyqt5 --config-settings --confirm-license= --verbose
希望这能有所帮助。
https://stackoverflow.com/questions/73714829
复制相似问题