# the version fo contrib can be defined by yourself
pip install opencv-contrib-python==3.4.2.17
one more thing
# install python-opencv
pip3 install opencv-python
#or use the sentence to define the version of opencv
pip3 install opencv-python == 4.5.1