Non-Python OpenCV 3.0 Home Installation

When I install OpenCV 3.0 using Homebrew, it gives me the following directions to associate it with Python 2.7:

If you need Python to find the bindings for this keg-only formula, run:
echo / usr / local / opt / opencv3 / lib / python2.7 / site-packages → /usr/local/lib/python2.7/site- packages / opencv3.pth

Although I can find python2.7 site packages in opencv3, no python34 site packages were created. Does anyone know how I can link my installation of OpenCV 3.0 with Python 3?

+4
source share
2 answers

, OpenCV 3 Python3. , :

  • Homebrew Python 3.5: brew install python3
  • homebrew/science: brew tap homebrew/science
  • Python3 pip3. site-packages Python3 : pip3 install numpy

  • OpenCV3 brew install opencv3 --with-python3

  • site-packages, 2. , Opencv3 Python3: echo /usr/local/opt/opencv3/lib/python3.5/site-packages >> /usr/local/lib/python3.5/site-packages/opencv3.pth

, Homebrew Python (, 3.4).

+7

opencv brew install opencv3 --with-python3. , brew info opencv3.

+4

Source: https://habr.com/ru/post/1606122/


All Articles