Source: python 3.x – Unable to Launch Qt uic – Stack Overflow
run the below line as administrator in terminal
python -c “import os; import PySide6; src = PySide6.__path__[0]; dst = src + ‘/bin’; os.mkdir(dst) if not os.path.exists(dst) else None; os.symlink(src + ‘/uic.exe’, dst + ‘/uic.exe’)”
The line, simply creates a link of the uic.exe inside a bin-folder under the Pyside6 module’s folder.
C:\Python311\Lib\site-packages\PySide6