If you want to give a Python application to another person who doesn’t have the python interpreter on their computers, you have to create an executable (exe) file. After you do this, you can send them only a single file, and the application will work correctly.
steps to convert .py to .exe
pip install pyinstaller
pyinstaller –onefile filename.py
here –onefile is used to combine all files together, automatically two folders will appear at the location namely build, dist and one .spec file.
Dist includes your execuatble file.

Leave a comment