The pyinstaller packing belt icon reports an error

The phenomenon is that it can be packaged into exe through pyinstaller – F — icon = logo.ico When the — icon parameter is not added, it can be packaged successfully, and the error “struct. Error: unpack requires a string argument of length 16” is reported after adding. Baidu gets the answer to the problem of the size of the icon file. The original size is 16×16. After changing to 128×128, it is packaged successfully

Similar Posts: