【发布时间】:2017-08-27 15:37:08
【问题描述】:
当我在终端 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 之类的选项在哪里?如何使用 Homebrew 安装带有 contrib 和其他选项的 opencv?
【问题讨论】:
-
试试
brew options opencv或brew options opencv3 -
不幸的是什么都没发生!!
-
嗯,不知道所有选项都去了哪里,也不知道为什么。不过使用
git clone和cmake安装并不难。