How to convert Python file to EXE !

Prerequisties

  • pip 
  • opencv-python 4.5.3.56

Step 01

Open your project folder and go to the command prompt.

Step 02 

Install pyinstaller using the command - pip install pyinstaller

Step 03

Type this command on your command prompt

pyinstaller --onefile -w main.py

-- onefile 👉 All the files in a one executable file

main.py 👉 Name of your main file



Author - Nisansali Nikapotha


Comments