m1 opencv py3.9最简单安装
本人作者 也是看了很多文章 折腾了3-4次 opencv还是没有装好
有方法用编译opencv源代码的whl代码的
有方法是用homebrew的
我都试过 不晓得为什么 我都不怎么成功
参考地址:https://www.icode9.com/content-1-832806.html
v2上有个老哥把编译后的whl放到github了,直接下载安装即可。在这里对他表示致谢。
地址:https://github.com/wizyoung/AppleSiliconSelfBuilds
- 进入虚拟环境
conda activate 环境名字(有torch的环境)
- cd到下载好whl文件的目录
cd 你下好的文件的地址
pip install opencv_contrib_python-4.5.0+bbaa777-cp39-