Python 使用自制软件安装openCV时遇到问题
我正在运行mac os x mavericks,我正在尝试使用自制软件安装openCV我不知道如何修复它我应该unistall Homebrew和python,然后再试一次如果是的话,我如何unistall它们 首先我做了这个 ruby-e“$(curl-fsSL)” 那么这个 brew点击自制/科学 这是有效的,因为当我再次键入brew点击自制/科学时,我得到了警告:已点击强> 但是当我键入brew info opencv时,出现了这个错误 错误:opencv没有可用的公式 当我尝试brew安装opencv时,它显示了这一点Python 使用自制软件安装openCV时遇到问题,python,opencv,homebrew,Python,Opencv,Homebrew,我正在运行mac os x mavericks,我正在尝试使用自制软件安装openCV我不知道如何修复它我应该unistall Homebrew和python,然后再试一次如果是的话,我如何unistall它们 首先我做了这个 ruby-e“$(curl-fsSL)” 那么这个 brew点击自制/科学 这是有效的,因为当我再次键入brew点击自制/科学时,我得到了警告:已点击 但是当我键入brew info opencv时,出现了这个错误 错误:opencv没有可用的公式 当我尝试brew安装o
Searching formulae...
Searching taps...
mymac:~ user$
这就是我运行brew doctor时得到的结果
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
这是我在linux上安装的过程。在过去,它对我非常有效:
mkdir build
创建名为build
的新目录。然后cd
到build
make-j4
中输入可能需要一段时间sudomakeinstall
sudosh-c'echo”/usr/local/lib“>/etc/ld.so.conf.d/opencv.conf'sudoldconfig
尝试从源代码构建它。@Ryan如何从源代码构建