Opencv installed on Mac OS has installed Python 3.6
run the command brew install opencv3
after installation, an error was reported. But there is also a hint in pychar import CV2
Import CV2 runs with an error of “modulenotfoundererror: no module named ‘CV2′”. If the package of CV2 cannot be found, the installation of the expansion package can be executed: PIP3 install Python opencv
PIP3
import cv2 print(cv2.__ version__)
output opencv version number
installation complete