arm64架构uos操作系统安装pyqt5报错AttributeError: module 'sipbuild.api' has no attribute

  • utm 虚拟机arm64架构uos操作系统安装pyqt5报错问题解决
# 报错:AttributeError: module 'sipbuild.api' has no attribute 'prepare_metadata_for_build_wheel'
# 查看编译所需依赖:PyQt-builder==1.12.2 packaging==21.3 ply==3.11 pyparsing==3.0.9 setuptools==62.3.2 sip==6.6.1 toml==0.10.2
# 查看堆栈信息发现报错为sip工具报错,使用本地环境编译,以排除sip版本兼容问题
pip install -v --no-build-isolation  pyqt5==5.15.6
# 新的报错堆栈信息中发现使用了系统环境的qt,查看系统环境qt
qmake -v
# 发现utm虚拟机内是没有安装qt5的,尝试手动安装
sudo apt-get install cmake qt5-default qtcreator
# 安装完成后再次执行
 pip install -v  pyqt5==5.15.6
# 没有报错,问题解决

# 麒麟990芯片 arm64系统 安装报错:error: invalid command 'bdist_wheel'
解决方案:pip install wheel

你可能感兴趣的:(arm64架构uos操作系统安装pyqt5报错AttributeError: module 'sipbuild.api' has no attribute)