无法在树莓派上使用pip安装PyQt5 [英] Can't install PyQt5 using pip on raspberry pi

查看:2011
本文介绍了无法在树莓派上使用pip安装PyQt5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用raspbian buuster的树莓派上,我是否尝试使用PyQt5安装

On a raspberry pi using raspbian buuster, am I trying to install PyQt5 using

pip install PyQt5
pip3 install PyQt5
sudo -H pip install PyQt5
python3 -m pip install PyQt5
python3 -m pip install PyQt5 --user

所有这些命令都会产生

ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 /usr/local/lib/python3.7/dist-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-rsse8fpi/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple --extra-index-url https://www.piwheels.org/simple -- 'sip >=5.0.1 <6' 'PyQt-builder >=1.1.0, <2'
       cwd: None
  Complete output (1 lines):
  ERROR: Invalid requirement: 'sip >=5.0.1 <6'
  ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 /usr/local/lib/python3.7/dist-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-rsse8fpi/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple --extra-index-url https://www.piwheels.org/simple -- 'sip >=5.0.1 <6' 'PyQt-builder >=1.1.0, <2' Check the logs for full command output.

可以安装其他库,它只是PyQt5.是什么让我无法仅安装PyQt5,如何解决?

Other libraries can be installed, it's just PyQt5. What is preventing me from installing just PyQt5 and how can it be fixed?

推荐答案

这是pyproject.toml中的错误:更改

requires = ["sip >=5.0.1 <6", "PyQt-builder >=1.1.0, <2"]

requires = ["sip >=5.0.1, <6", "PyQt-builder >=1.1.0, <2"]

然后编译.

这篇关于无法在树莓派上使用pip安装PyQt5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆