i think there's an access permission problem with windows.
specifically with C:\Program Files\WindowsApps folder. (it's hidden)
but i think this is the problem.
anyway i created a virtual environment, installed pyinstaller within the venv, and everything worked fine.