无法在树莓派pi上使用pip安装PyQt5

问题描述 投票:0回答:1

在使用树莓派buuster的树莓派上,我是否尝试使用以下方式安装PyQt5:>

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,如何解决?

[在使用raspbian buuster的树莓派上,我是否尝试使用pip安装PyQt5 pip3安装PyQt5 sudo -H pip安装PyQt5 python3 -m pip安装PyQt5 python3 -m pip安装PyQt5 --...

python pip raspberry-pi pyqt5 raspbian
1个回答
0
投票

根据我的经验安装pyqt5有点(有毒)而且您在安装时需要非常小心您用于python的IDE是什么?如果是Pycharm,则(删除并重新安装),但请确保您添加了Python PATHenter image description here

重新安装它(重新启动电脑后,然后使用cmd-pip install pyqt5

© www.soinside.com 2019 - 2024. All rights reserved.