Welcome folks today in this blog post we will be talking about how to convert the python scripts to executable files with the help of pyinstaller library. Many times we need to share the python files with the world so executables are really useful when we want others to run our python applications. First of all install the pyinstaller library to get started.
pip install pyinstaller
After executing this command you have successfully installed the pyinstaller library now just go to the directory where you have created the python project and open the command line into that directory and execute the following command
pyinstaller --onefile -w 'filename.py'
where filename.py is the actual python file to be converted to exe file so just replace with your python file name and enter and it takes some time depending on the size of the file and the dependencies and after it will create a dist folder holding the executable file like below.