UnicodeDecodeError error of python3.6 pyinstaller

simple explanation:
1. There is no problem with installing the package in the same environment, but the problem lies in the py file
2. The attempts to follow the searched method have no effect (delete Chinese comments, the path does not contain Chinese, execute after entering chcp 65001 in cmd)
3, py file dependency package is psycopg2, tkinter, random

.

problem description:
in the cmd of python3.6,window7 environment, an error is reported after pyinstaller-F-w judge_samples.py is executed

the following is a screenshot of the error code

clipboard.png

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e44532-44abb.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e44532-44abb.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?