インストール
python2用
$sudo apt-get install python2-opencv
python3用
$sudo apt-get install python3-opencv
確認
$ python3
Python 3.7.3 (default, Dec 20 2019, 18:57:59)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2 as cv
>>> print(cv.__version__)
3.2.0
>>>