Hombrew中没有用于opencv安装的选项

时间:2017-08-27 15:37:08

标签: c++ opencv homebrew

当我在终端brew info opencv上运行此命令时,我得到了这个答案:

opencv: stable 3.3.0 (bottled)
Open source computer vision library
http://opencv.org/
/usr/local/Cellar/opencv/3.3.0_3 (516 files, 122.9MB) *
  Poured from bottle on 2017-08-27 at 01:15:27
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/opencv.rb
==> Dependencies
Build: cmake ✔, pkg-config ✔
Required: eigen ✔, ffmpeg ✔, jpeg ✔, libpng ✔, libtiff ✔, openexr ✔, numpy ✔
==> Requirements
Required: python ✔, python3 ✔
==> Caveats
Python modules have been installed and Homebrew's site-packages is not
in your Python sys.path, so you will not be able to import the modules
this formula installed. If you plan to develop with these modules,
please run:
  mkdir -p /Users/amirhossein/Library/Python/2.7/lib/python/site-packages
  echo 'import site; site.addsitedir("/usr/local/lib/python2.7/site-packages")' >> /Users/amirhossein/Library/Python/2.7/lib/python/site-packages/homebrew.pth

--with--contrib等选项在哪里?如何使用contrib& amp安装opencv?使用Homebrew的其他选项?

1 个答案:

答案 0 :(得分:1)

没有这样的选项,因为Homebrew默认情况下使用opencv 构建contrib 。两周前将opencv导入核心存储库时,删除了所有现有选项。

只需使用brew install opencv