树莓派pip安装
1 首先更新pip3:
sudo python3 -m pip install --upgrade pip
2 安装pyqt5
sudo apt install pyqt5* #安装pyqt5的依赖项
sudo pip3 install pyqt5(=5.15.1 ) 报错了
3 安装图形设计工具
sudo apt install qt5-default qttools5-dev-tools # 安装qtdesigner
4 安装webview 需要单独安装,如果要用
pip3 install PyQtWebEngine==5.15.1
其他安装方案(可用)
sudo apt-get install python3-pyqt5 sudo apt-get install pyqt5-dev-tools sudo apt-get install qttools5-dev-tools
sudo apt
-
get install qt5
-
default pyqt5
-
dev pyqt5
-
dev
-
tools
sudo apt
-
get install qtcreator
卸载
sudo apt autoremove python3-pyqt5
sudo apt autoremove
pyqt5-dev-tools
sudo apt autoremove qttools5-dev-tools
sudo apt-get autoremove libqt5core5a