Pyinstaller package in python allows users to convert their python scripts or code into executable thus enabling your python code to run on a click making it super awesome and super easy to execute. To do that we have to first install Pyinstaller package using python package management called pip. If you are new and don't know how to use pip then follow the below instructions.
Adding PIP and Installing PyInstaller
Move to your python installed directory and navigate into a folder called scripts. If you are not sure where your python folder is located then run the below python script.
import sys
sys.executable
The output will tell you where you have installed directory of python is located. Refer the below snap for reference.
Open a command prompt and type in the below command to set the script folder to the environment variables.
C:\>set PATH=C:\Users\Prathap Dominicsavio\\AppData\local\Programs\Python\Python37\scripts;%PATH%
Now open a new command prompt and enter the below command to install PyInstaller into your system.
pip install PyInstaller
If you have already installed them then you will get a similar output as shown below,
Executing PyInstaller
The below given is the PyInstaller syntax,
pyinstaller <scriptname>
e.g, pyinstaller Opening_link_multibrowser.py
On executing it will take couple of mins depending upon the system and will create a bunch of file in the same directory
After executing the command, apart from script file you will fine 3 additional directory and one spec file. We will discuss what are all those file shortly.