Ubuntu安装PyQt5+Qt Designer及:ModuleNotFoundError: No module named ‘PyQt5’的解决

Ubuntu安装VS Code运行Python文件提示:PyQt5+Qt Designer及:ModuleNotFoundError: No module named ‘PyQt5’的解决

1、安装相关工具及库:

sudo apt-get install python3-pip //安装pip
pip3 install PyQt5 //库 (sudo apt-get install python3-pyqt5 //库)

2、

sudo apt-get install qttools5-dev-tools //安装Qtdesigner
sudo apt-get install qt5-default
sudo apt install pyqt5-dev-tools //安装pyqt5工具 pyui

 

发表评论