pip install opencv 4.2 code example Example: install opencv python pip install opencv-python pip install opencv-contrib-python