pip install opencv-python==3.4.2.16 and opencv-contrib-python=3.4.2.16 works on my mac using python 3.7.4
$ python -V
Python 3.7.4
$ pip install opencv-python==3.4.2.16
Collecting opencv-python==3.4.2.16
Using cached https://files.pythonhosted.org/packages/eb/28/dfa1d33d8985e4afe26f5deaab3d1b9bfcbfb2c1460c3a088136a090d8eb/opencv_python-3.4.2.16-cp37-cp37m-macosx_10_6_x86_64.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Requirement already satisfied: numpy>=1.14.5 in ./venv-p3.74/lib/python3.7/site-packages (from opencv-python==3.4.2.16) (1.17.3)
Installing collected packages: opencv-python
Successfully installed opencv-python-3.4.2.16
$ pip install opencv-contrib-python==3.4.2.16
Collecting opencv-contrib-python==3.4.2.16
Using cached https://files.pythonhosted.org/packages/14/4d/0a775b580c5a24c1d5cbb7add78312e0176101490ba26cd2e49242fa40db/opencv_contrib_python-3.4.2.16-cp37-cp37m-macosx_10_6_x86_64.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl
Requirement already satisfied: numpy>=1.14.5 in ./venv-p3.74/lib/python3.7/site-packages (from opencv-contrib-python==3.4.2.16) (1.17.3)
Installing collected packages: opencv-contrib-python
Successfully installed opencv-contrib-python-3.4.2.16
You are using pip version 19.0.3, however version 19.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
but on ubuntu it (also using 3.7.4) it fails..
$ python -V
Python 3.7.4
$ pip install opencv-python==3.4.2.16
ERROR: Could not find a version that satisfies the requirement opencv-python==3.4.2.16 (from versions: 3.4.2.17, 3.4.3.18, 3.4.4.19, 3.4.5.20, 3.4.6.27, 3.4.7.28, 3.4.8.29, 4.0.0.21, 4.0.1.23, 4.0.1.24, 4.1.0.25, 4.1.1.26, 4.1.2.30)
ERROR: No matching distribution found for opencv-python==3.4.2.16
$ pip install opencv-contrib-python==3.4.2.16
ERROR: Could not find a version that satisfies the requirement opencv-contrib-python==3.4.2.16 (from versions: 3.4.2.17, 3.4.3.18, 3.4.4.19, 3.4.5.20, 3.4.6.27, 3.4.7.28, 3.4.8.29, 4.0.0.21, 4.0.1.23, 4.0.1.24, 4.1.0.25, 4.1.1.26, 4.1.2.30)
ERROR: No matching distribution found for opencv-contrib-python==3.4.2.16
pip install opencv-python==3.4.2.16 and opencv-contrib-python=3.4.2.16 works on my mac using python 3.7.4
but on ubuntu it (also using 3.7.4) it fails..
Seems to be listed here as a valid version
https://pypi.org/project/opencv-python/3.4.2.16/
https://pypi.org/project/opencv-contrib-python/3.4.2.16/