brew 安装指定版本
2023-03-20 本文已影响0人
burgess123
这里以opencv为例子
打开终端,并输入:
brew info opencv

打开:https://github.com/Homebrew/homebrew-core/tree/master/Formula/opencv.rb

可以看到,默认是3.7.0版本




把这个ruby文件下载下来,保存为:opencv.rb
然后在终端:brew install ./opencv.rb
就可以安装指定版本的opencv