Nvidia AGX Xavier安装PyQt5遇到的问题

问题一:AttributeError: module ‘sipbuild.api’ has no attribute ‘prepare_metadata_for_build_wheel’

大意是缺少依赖,可以依次使用以下方法:

方法一:升级pip

但是对我而言升级pip没有用

参考链接:[Solved] AttributeError: module 'sipbuild.api' has no attribute 'prepare_metadata_for_build_wheel' - Exception ErrorTo Solve AttributeError: module 'sipbuild.api' has no attribute 'prepare_metadata_for_build_wheel' Error You Just need to update PIP version ahttps://exerror.com/attributeerror-module-sipbuild-api-has-no-attribute-prepare_metadata_for_build_wheel/

pip3 install --upgrade pip3

方法二:安装QT5

sudo apt install qt5-default

然后再

pip3 install PyQt5

参考链接:python - AttributeError: module 'sipbuild.api' has no attribute 'prepare_metadata_for_build_wheel' for PyQt5 5.15.0 - Stack Overflowhttps://stackoverflow.com/a/70096518

正如这个链接回答的评论里提到的:

This should be the selected answer, if QT5 is not installed on the host or there is a large enough version gap the metadata just won't exist or be valid. 

PyQt5没有相应的依赖,而安装QT5之后就会有对应的metadata或者说依赖生成,之后就可以安装PyQt5了。

问题二:pip3 install PyQt5的时候卡在了Preparing Wheel metadata...

StackOverflow问题链接:

python - Pip Install stuck on "Preparing Wheel metadata..." when trying to install PyQT5 - Stack Overflowhttps://stackoverflow.com/questions/66546886/pip-install-stuck-on-preparing-wheel-metadata-when-trying-to-install-pyqt5

我也卡了很久,但是这个时候只要等待就好了,比如你可以

pip3 install --verbose PyQt5

可以在install的时候输出记录,查看是否卡在了后台。

问题三:pip3 install pyqt5-tools时候AttributeError: module ‘sipbuild.api’ has no attribute ‘prepare_metadata_for_build_wheel’

这个问题很好解决,不要在Xavier上安装pyqt-tools。至少我是用不到tools的,直接安装PyQt5。

  • 2
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 3
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值