gpt4 book ai didi

python - 在 mavericks 上为 python 安装 opencv

转载 作者:太空狗 更新时间:2023-10-29 21:46:43 24 4
gpt4 key购买 nike

我正在尝试在 2013 年底的 Macbook Pro 上安装 opencv 和 mavericks。我没有找到任何二进制文件,所以我正在尝试构建它。
我试过 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
(cuda_compile_generated_matrix_operations.cu.o.cmake:208 处的 CMake 错误)

在这个网站上搜索时,我找到了 opencv for python on mavericks (我也试过 homebrew 也产生了错误 2,但没有任何进一步的信息)

我在谷歌上搜索了很多,但没有找到适合我的解决方案。有没有人知道在 Mavericks 上安装 opencv?

谢谢

使用 brew 给出以下输出:

    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).

我使用对学生免费的 canopy ( https://www.enthought.com/products/canopy/) 解决了这个问题

最佳答案

用brew正常安装即可。

brew install homebrew/science/opencv

brew tap homebrew/science
brew install opencv

这就是我在我的特立独行者上安装它的方式,它运行良好。

关于python - 在 mavericks 上为 python 安装 opencv,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19891790/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com