在特立独行者上为Python安装opencv [英] installing opencv for python on mavericks

查看:109
本文介绍了在特立独行者上为Python安装opencv的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在2013年下半年以特立独行的方式在Macbook Pro上安装opencv.我没有找到任何二进制文件,因此我正在尝试构建它.
我尝试 http://www.guidefreitas.com/installing-opencv-2-4-2-on-mac-osx-mountain-lion-with-python-support
http://forums.udacity.com /questions/100021223/installing-opencv-on-os-x-mountain-lion
调用make时产生错误2
(CMake错误位于cuda_compile_generation_matrix_operations.cu.o.cmake:208)

I am trying to install opencv on a Macbook Pro late 2013 with mavericks. I didn't find any binaries so I am trying to build it.
I tried http://www.guidefreitas.com/installing-opencv-2-4-2-on-mac-osx-mountain-lion-with-python-support
and http://forums.udacity.com/questions/100021223/installing-opencv-on-os-x-mountain-lion
when calling make the error 2 is produced
(CMake Error at cuda_compile_generated_matrix_operations.cu.o.cmake:208)

在该网站上搜索时,我发现在特立独行的python上的opencv (我还尝试了自制程序,该程序也产生了错误2,但没有任何进一步的信息)

When searching on this website I found opencv for python on mavericks (I also tried homebrew which also produced error 2, but without any further information)

我在Google上搜索了很多,但没有找到适合我的解决方案.有人在Mavericks上安装opencv有想法吗?

I googled a lot, but none of the found solutions worked for me. Does anyone have a tut for installing opencv on Mavericks?

谢谢

使用brew提供以下输出:

using brew gives the following output:

    brew install homebrew/science/opencv
    Warning: It appears you have MacPorts or Fink installed.
    Software installed with other package managers causes known problems for
    Homebrew. If a formula fails to build, uninstall MacPorts/Fink and try again.
    ==> Downloading http://downloads.sourceforge.net/project/opencvlibrary/opencv-un
    Already downloaded: /Library/Caches/Homebrew/opencv-2.4.6.1.tar.gz
    ==> cmake -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/opencv/2.4.6.1 -DCMAKE_BUILD_
    ==> make
    cd /tmp/opencv-QBoi/opencv-2.4.6.1/macbuild/modules/stitching && /usr/local/Cellar/cmake/2.8.12/bin/cmake -E cmake_symlink_library ../../lib/libopencv_stitching.2.4.6.dylib ../../lib/libopencv_stitching.2.4.dylib ../../lib/libopencv_stitching.dylib
    /usr/local/Cellar/cmake/2.8.12/bin/cmake -E cmake_progress_report /tmp/opencv-QBoi/opencv-2.4.6.1/macbuild/CMakeFiles  90 91
    [100%] Built target opencv_stitching
    make[1]: *** [modules/python/CMakeFiles/opencv_python.dir/all] Error 2
    make: *** [all] Error 2

    READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting
    If reporting this please do so at the homebrew/science tap (not mxcl/homebrew).

我通过使用顶篷( https://www.enthought.com/产品/机盖/)对学生免费提供

I solved the problem for me by using canopy (https://www.enthought.com/products/canopy/) which is free for students

推荐答案

您可以通过brew正常安装它.

You can install it with brew normally.

brew install homebrew/science/opencv

brew tap homebrew/science
brew install opencv

这就是我在特立独行者上安装它的方式,并且工作正常.

This is how I installed it on my mavericks and it worked fine.

这篇关于在特立独行者上为Python安装opencv的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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