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

Menu