一,下载opencv-python
先在Python第三方库官网下载opencv-python的包
官网地址:https://pypi.org/
根据Python版本,系统版本下载第三方包
二,安装依赖库
直接安装opencv-python
pip3 install opencv-python
会有skbuild,cmake等依赖库报错,先安装依赖
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple scikit-build
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple cmake
再次尝试,opencv-python安装成功