"Missing cookie, unsupported PyInstaller version or not a PyInstaller archive"

PyInstaller4.5 , MEI , or 5.3.0 .

: The executable may have been corrupted during download or transfer, leading to an incomplete or unreadable archive segment. Unsupported PyInstaller Version

to see if it exists at the end of the file. If a different pattern is present, the file likely uses a custom magic signature. Environment Check

To resolve this, you try updating PyInstaller and re-running the command:

Unpacking PyInstaller packed files - python - Stack Overflow