1pip install pyinstaller
2
3cd YourFilePath
4
5pyinstaller --onefile YourFileName
1pip install pyinstaller
2
3cd PathOfFile
4
5pyinstaller --onefile -w ScriptName.py
6
7(note that if you are using -w then your python file has to be an application and the file will be inside the "dist" folder)