之前安装失败,报错。这篇的方法解决了——
进入虚拟环境开始安装:
先安装 opencv-python
pip install opencv-python -i https://pypi.tuna.tsinghua.edu.cn/simple
然后安装opencv-contrib-python
pip install opencv-contrib-python -i https://pypi.tuna.tsinghua.edu.cn/simple
————————————————
原文链接:https://blog.csdn.net/Vertira/article/details/123376544