0
opencv的和Python 2.7.5
我試圖安裝在MacOS OpenCV的我folwoing本教程 http://www.jeffreythompson.org/blog/2013/08/22/update-installing-opencv-on-mac-mountain-lion/問題:在Mac上安裝
當我到了這一點,我得到這個錯誤
$ 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.
我安裝NumPy的通過使用https://github.com/fonnesbeck/ScipySuperpack 我用,以及:
$ 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
,但我仍然得到同樣的問題
你能檢查更新嗎 – DataT
是的,而且端口是相當主動的維護 - 通常在新的主要OpenCV版本發佈和它在macports上可用之間只有很短的等待時間。無論如何,這些依賴將由macports安裝,這允許你自己編譯不同版本的庫。便利! – jlfranco