Create an exe file with Python and Pyinstaller
I am going to show you how to use Pyinstaller to make and executable file in windows from a simple .py file. I will use the code of calculator.py, to make a calculator with python using tkinter, to show how easily you ca create an exe file.
First of all, install pyinstaller and then to reate the exe file digit this in the command line interface
# write this in the command line interface pyinstaller --noconsole --onefile --noupx Yourfile.py
You will find the exe file in the dist folder that will appear in the folder of the .py file.
If you double click on the exe file and it does not run, open the cmd and write
.\Yourfile