put this in a .bat file or just run it in CMD
pyinstaller --onefile file_name.py
#If You are Using Mac Install Wine And Download The Windows Command Line
#In windows Press Windows Key + R Key
#Type In Cmd
#Then Type The Commands Below
pip install pyinstaller
cd YourFilepath
pyinstaller Nameoffile.py --onefile -w