If you are using Pyinstaller to turn your Python scripts into an executable, but you are getting errors when using Pyinstaller during compile, try this before you start down the road of hundreds of suggestions on the internet.
If you see the following line
Followed by errors like this one for example:
WARNING: lib not found: Qt6Widgets.dll dependency of
First try updating the Pyinstaller and hooks with the following line and try to run Pyinstaller again.
pip3 install --upgrade PyInstaller pyinstaller-hooks-contrib
This will not fix all issues, but if your pytinstaller and hooks are needing an update it will do the trick and it is always a good idea to update applications.
Find more on https://notposted.com