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)
1pip install pyinstaller
2
3cd FullPathOfFile in cmd console
4pyinstaller --onefile pythonScriptName.py
5# a .exe file is created in the FullPathOfFile\dist