download latest version of opencv from terminal code example
Example 1: install opencv python
pip install opencv-python
pip install opencv-contrib-python
Example 2: windows python install opencv
pip install opencv-python
pip install opencv-python
pip install opencv-contrib-python
pip install opencv-python