Install Python-pip
Steps:For Windows
Step 1 : Install choco from https://chocolatey.org/install Step 2 : Install python3 by running this command in administrative shell choco install -y python3 Step 3 : Insure that python installer pip is present in Environment Variables. Step 4 : Type pip install opencv-python in the same directory you are working in. Step 5 : Run the .exe file or simply double click the file after saving.
Steps : For Linux Step 1 : sudo apt-get install python3-pip Step 2 : Follow step 4 from above mentioned windows set-up. Step 3 : Run the code.
Similarly for macOS use brew for setup.