how to convert .qrc file in python

C++
# Locate .qrc file and run this command into terminal it will generate .py file.
# Now import icon_rc file
>> pyrcc5 icons.qrc -o icon_rc.py
Source

Also in C++: