【问题标题】:pip install pyqt5 ,it cannot go onpip install pyqt5 无法继续
【发布时间】:2022-10-14 23:03:57
【问题描述】:
 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 机器。

【问题讨论】:

  • 你做了什么命令确切地类型和使用什么终端仿真器?你确定你不能只输入“yes”然后按回车(即使你没有在屏幕上看到输入的文本)?
  • 点安装 pyqt5 --verbose 。配对终端
  • 我可以看到输入的文本,但是按下回车键时它不起作用

标签: python pip pyqt5


【解决方案1】:

有一个是选项yes | pip install pyqt5

【讨论】:

  • 上面关于许可/是/否的问题来自 PyQt5,而不是来自pip。我非常怀疑pip install --yes 在这种情况下会有所帮助。
  • 感谢您的回复。它似乎不起作用。 ‘没有这样的选项——是’
  • @zsshao 我编辑了答案。现在它应该可以工作了
  • 还是不行。
【解决方案2】:

我遇到了同样的问题,因为我的平台(Macbook w/OSX Arm64)没有安装轮子。当 pip 没有可使用的轮子时,它会尝试从源代码编译。通过将 --config-settings 参数传递给 pip,您可以将参数传递给 configure.py ,该参数将在编译期间使用。幸运的是 pyqt 有一个参数可以自动接受许可证 --confirm-license。但是,pip 需要 Key=value 形式的参数,因此您需要传递 --confirm-license= (即没有值)并且它会起作用。花了一段时间(大约 30+ 分钟),但我终于安装了 pyqt5。

这是我使用的命令:

pip3 install pyqt5 --config-settings --confirm-license= --verbose

希望这可以帮助。

【讨论】:

    猜你喜欢
    • 2022-06-17
    • 1970-01-01
    • 2022-12-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-10-18
    • 2020-09-14
    相关资源
    最近更新 更多