pip install opencv-python==4.5.1 code example Example: install opencv python pip install opencv-python pip install opencv-contrib-python