first step:
Open win + R, input cmd, enter the command "pip install pyinstaller"
Step two:
find the memory address of the file to be converted py
third step:
In the command window, type "pyinstaller -F file resides address \ wf.py" Enter. Conversion successful
Appending find the words, go to the directory to find the exe file conversion is complete, place the file in the same directory py.
Step four:
run the exe file to the console.