how to use pyuic5 on macOS catalina After downloading the pyuic5 file run the following commmands on your terminal /Users/singhyogendra/Desktop/\
(Desktop is where my pyuic5 file is located if yours is somewhere else make sure to use that path and end it in the same way i.e. "/")
pyuic5 -x /Users/singhyogendra/Desktop/untitled.ui -o /Users/singhyogendra/Desktop/file.py
(open the ui file using it's absoulte path and -o creates the python file in the path you define make sure to give a path otherwsie file.py won't be created you can name the .py file whatever you like)