使用Homeb安装openCV时遇到问题

2024-05-18 22:28:36 发布

您现在位置:Python中文网/ 问答频道 /正文

我在运行MacOSX mavericks,我正在尝试使用自制程序安装openCV我不确定如何修复它,我应该将自制程序和python合并,然后再试一次,如果是这样,我如何合并它们

首先我做了这个 ruby-e“$(curl-fsSLhttps://raw.githubusercontent.com/Homebrew/install/master/install)” 那么这个 自制/科学 当我再次输入brew-tap-homebrew/science时,这是有效的,因为我再次得到警告:已点击!

但当我输入brew info opencv时,出现了这个错误 错误:opencv没有可用的公式 当我尝试brew安装opencv时,它显示了

Searching formulae...
Searching taps...
mymac:~ user$

这就是我当酿酒医生时得到的

Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry and just ignore them. Thanks!

Warning: Python is installed at /Library/Frameworks/Python.framework

Homebrew only supports building against the System-provided Python or a
brewed Python. In particular, Pythons installed to /Library can interfere
with other software installs.

Warning: /usr/bin occurs before /usr/local/bin
This means that system-provided programs will be used instead of those
provided by Homebrew. The following tools exist at both paths:

    2to3
    2to3-2.7
    idle
    idle2.7
    pydoc
    pydoc2.7
    python
    python-config
    python2.7
    python2.7-config
    pythonw
    pythonw2.7
    smtpd.py
    smtpd2.7.py

Consider setting your PATH so that /usr/local/bin
occurs before /usr/bin. Here is a one-liner:
    echo export PATH='/usr/local/bin:$PATH' >> ~/.bash_profile

Warning: Your Xcode (6.0.1) is outdated
Please update to Xcode 6.1.
Xcode can be updated from the App Store.

更新1

我解决了我的问题,我决定把它贴出来,以防有人遇到同样的问题 我就是这么做的

untap homebrew/science
brew update
brew doctor 
brew tap homebrew/science

Tags: thetopathbinthatisusrlocal

热门问题