我正在尝试在MacOs上安装OpenCV 我正在接受本教程 http://www.jeffreythompson.org/blog/2013/08/22/update-installing-opencv-on-mac-mountain-lion/
当我达到这一点时,我收到了此错误
$ brew install opencv
opencv: Unsatisfied dependency: numpy
External Python cannot `import numpy`. Install with:
pip-2.7 install numpy
Error: An unsatisfied requirement failed this build.
我使用https://github.com/fonnesbeck/ScipySuperpack安装了NumPy 我也用过:
$ git clone https://github.com/numpy/numpy.git
$ git clone https://github.com/scipy/scipy.git
$ cd numpy
$ python setup.py build && python setup.py install
$ brew install gfortran
$ cd ../scipy
$ python setup.py build && python setup.py install
当我去安装OpenCV时遇到了这个问题:
$ brew install opencv
opencv: Unsatisfied dependency: numpy
External Python cannot `import numpy`. Install with:
pip-2.7 install numpy
但我仍然遇到同样的问题
答案 0 :(得分:0)
问题的一个可能原因是你的系统上有几个python版本(OSX和你的SciPy superpack安装附带的默认安装,可能还有其他版本)和brew找不到你有Numpy的安装
我建议通过Macports安装OpenCV,这将为您节省很多与选择使用哪个版本的python相关的麻烦。