How to install opencv using python pip ?

To run OpenCV there are many ways but the easy way I will suggest you install OpenCV using the command prompt. but before that, you have to follow some step.

  • install python 3.xx (least version) using this link 
https://www.python.org/downloads/
  • Now after installing python3 just cross-check where python having properly path or not for that Control Panel------>System and Security------>System----->Advanced system setting






  • Advanced system setting----->Environment variable----->path(double click)




    • path(double click)--->new---->
      then past the location where python is installed in C drive.for example in my case.
      C:\Users\ALOK\AppData\Local\Programs\Python\Python37
      C:\Users\ALOK\AppData\Local\Programs\Python\Python37\Scripts
      then click ok---->ok
      • now go to command prompt
      • now check where python is installed properly or not for that type python 





    • now check where pip is installed properly or not for that type pip

      • if it is not installed then follow this step
      • make your system online
      • in command prompt type

      curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
      • after then type
      python get-pip.py

      for more information go to this link

      • Now finally least install OpenCV using a command prompt for that type 
            pip install opencv-python
      https://www.jetbrains.com/pycharm/download/?fromIDE=#section=windows

      PyCharm installing processer is easy and simple. So once its install then 
      go to FILE----->SETTING----->PROJECT INTERPRETER---------->CHEACK THE PYTHON VERSION IS SAME OR NOT IF IT IS DIFFERENT THEN SELECT THE CORRECT ONE

      Now add the click here and  SEARCH OpenCV and install the OpenCV FILE 

      install the OpenCV FILE 

      that's it.now restates your system..... 


      Now

      Comments