build a .exe for Windows from a python 3 script

To create an executable file of your Python program, run the following command in CMD.First you need to install pyinstaller, with the following command:

pip install pyinstaller

And then do the following to create one executable file of your Python program, first, Go to your program path, (with cd) where your Python (.py) file is, and then:

pyinstaller -w -F YourPyFile

Leave a Comment