For me, moving the pyuic5 application from the path in which it was before to the path my file was.
Like before pyuic5 application was in the path:
C:\Users\ASUS\AppData\Roaming\Python\Python39\Scripts
And then I moved it to the path:
C:\Users\ASUS\Desktop\Jarvis-everything\Github Jarvis\Jarvis2\Code
Where my file was, then it worked.
For you, it might be different but it is easy to find.
Just open cmd
, type pip install pyqt5
then enter.
You will see that it shows "Requirement already satisfied"(if you have already installed) on the same line you will find your path where it is installed.
There, find the pyuic5 application and move it to the path where the file you want to convert is present.