以下是完整的安装过程,如果出现No module named 'libs.resources',直接看第四点。
1.安装PyQt,在官网下载吧,否则pip install 要等好久
2.安装PyQtTool,同样在官网下载
https://pypi.org/project/PyQt5/5.11.3/#files
https://pypi.org/project/pyqt5-tools/#files
3.运行:pyrcc5 -o resources.py resources.qrc
4.将生成的resources.py拷贝到同级的libs目录下
5.成功运行。