2017-08-27 68 views
0

沒有選擇當我運行brew info opencv終端命令我得到這樣的回答:沒有在Hombrew爲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安裝opencv和其他選項contrib &?

+0

嘗試'brew選項opencv'或'brew options opencv3' –

+0

不幸的是沒有任何反應! – user2626054

+0

嗯,不知道所有選項都去了哪裏,也不知道爲什麼。不過,使用'git clone'和'cmake'安裝並不難。 –

回答

0

有沒有這樣的選擇,因爲家釀造opencvcontrib默認。當opencv兩週前導入到核心存儲庫時,所有現有選項都被刪除。

只需使用brew install opencv