I have this working py file that I wanted to convert into an executable file. I used pyinstaller to do this, to be specific I used this command
pyinstaller --onef