在MacOS Mojave上使用Python3.9安装OpenCV时出错

问题描述

错误消息:

$ pip3 install opencv-contrib-python

ERROR: Could not find a version that satisfies the requirement opencv-contrib-python (from versions: none)
ERROR: No matching distribution found for opencv-contrib-python

解决方法

检查答案here

您必须从https://github.com/skvark/opencv-python下载源代码,安装编译器和必要的库,然后自己编译OpenCV。