Hombrew中没有用于opencv安装的选项 [英] There is no Options in Hombrew for opencv installation

查看:82
本文介绍了Hombrew中没有用于opencv安装的选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在终端brew info opencv上运行此命令时,得到以下答案:

When I run this command on Terminal brew info opencv I get this answer:

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&安装opencv?其他使用Homebrew的选项?

Where are the options like --with--contrib? How can I install opencv with contrib & other options using Homebrew?

推荐答案

没有这样的选择,因为Homebrew默认使用contrib 构建opencv.两周前将opencv导入核心存储库后,所有现有选项均被删除.

There’s no such option because Homebrew builds opencv with contrib by default. All the existing options were removed when opencv was imported into the core repository two weeks ago.

只需使用brew install opencv.

这篇关于Hombrew中没有用于opencv安装的选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆