If you have written a Python code for a simple application and you want to convert the application into a executable, then Pyinstaller is the option.
Install the Pyinstaller using the below command.
pip install pyinstaller
Post that point to the directory in which you placed the Python code using cd {path}
Once you have the command prompt pointing to the directory in which python program is saved, use the below command to create an executable.
pyinstaller --onefile python-file-name.py
The executable shall be created in the dist folder as shown:
0 Comments