Try running the executable from cmd instead of double-clicking it in your file explorer. i.e. After running pyinstaller --onefile your-code.py
run dist\your-code.exe
. It should still fail but it will print a Python error message so you know what its problem is. Post the error message here if it’s not self explanatory.