ImportError: No module named 'resource_rc'

前端 未结 2 1229
轻奢々
轻奢々 2020-12-03 19:26

I made a simple program with PyQt GUI, and compiled \'.ui\' file.

# Form implementation generated from reading ui file \'main.ui\'
#
# Created by: PyQt5 UI c         


        
2条回答
  •  有刺的猬
    2020-12-03 19:51

    You should have a file called resource.qrc, this must be converted to .py, this or you can do it by executing:

    pyrcc5 resource.qrc -o resource_rc.py
    

提交回复
热议问题