首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >pip安装pyqt5,它不能继续

pip安装pyqt5,它不能继续
EN

Stack Overflow用户
提问于 2022-09-14 09:49:56
回答 1查看 393关注 0票数 1
代码语言:javascript
运行
复制
 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机器。

EN

回答 1

Stack Overflow用户

发布于 2022-10-14 15:03:36

我也有同样的问题,因为我的平台没有车轮安装(Macbook w/ OSX Arm64)。当pip没有可以工作的轮子时,它会尝试从源代码编译。通过将一个--配置-设置参数传递给pip,您可以将一个参数传递给configure.py,该参数将在编译期间使用。幸运的是,pyqt有一个参数可以自动接受许可证--确认许可。但是,pip需要Key=value表单中的参数,因此您需要传递--确认-许可=(即没有值),并且它将工作。这花了一段时间(关于30+ min),但我终于安装了pyqt5。

下面是我使用的命令:

代码语言:javascript
运行
复制
pip3 install pyqt5 --config-settings --confirm-license= --verbose

希望这能有所帮助。

票数 6
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/73714829

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档