

$ ln -s /usr/local/Cellar/opencv3/3.x.x/lib/python2.7/site-packages/cv2.so \ Create another subdirectory inside site-packages, for example, /opencv3 and put a symlink to the 3.x.x cv2.so file in there:.

usr/local/lib/python2.7/site-packages/cv2.so
#Opencv for mac os x install install#
brew install opencv3 creates /usr/local/Cellar/opencv3/.brew install opencv creates /usr/local/Cellar/opencv/.Homebrew installs libraries to /usr/local/Cellar/.=> Pouring lame-3.99.5.high_sierra.bottle.1.tar.gz If you wish to have this formula's python executable in your PATH then addĮxport PATH="/usr/local/opt/python/libexec/bin:$PATH" This formula installs a python2 executable to /usr/local/bin. => /usr/local/Cellar/python/2.7.14/bin/python2 -s setup.py -no-user-cfg instal => make frameworkinstallextras PYTHONAPPSDIR=/usr/local/Cellar/python/2.7.14/sh => make install PYTHONAPPSDIR=/usr/local/Cellar/python/2.7.14 configure -prefix=/usr/local/Cellar/python/2.7.14 -enable-ipv6 -dataroo They will install into the site-package directory Pip3 install -upgrade pip setuptools wheel Pip, setuptools, and wheel have been installed. => /usr/local/Cellar/python3/3.6.3/bin/python3 -s setup.py -no-user-cfg instal => make frameworkinstallextras PYTHONAPPSDIR=/usr/local/Cellar/python3/3.6.3/sh => make install PYTHONAPPSDIR=/usr/local/Cellar/python3/3.6.3 configure -prefix=/usr/local/Cellar/python3/3.6.3 -enable-ipv6 -dataroo

The bottle needs the Apple Command Line Tools to be installed. PKG_CONFIG_PATH: /usr/local/opt/openssl/lib/pkgconfig pem files inīecause Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries.Įcho 'export PATH="/usr/local/opt/openssl/bin:$PATH"' > ~/.bash_profileĬPPFLAGS: -I/usr/local/opt/openssl/include => Pouring openssl-1.0.2l.high_Ī CA file has been bootstrapped using certificates from the SystemRoots PKG_CONFIG_PATH: /usr/local/opt/sqlite/lib/pkgconfig
#Opencv for mac os x install software#
If you need to have this software first in your PATH run:Įcho 'export PATH="/usr/local/opt/sqlite/bin:$PATH"' > ~/.bash_profileĬPPFLAGS: -I/usr/local/opt/sqlite/includeįor pkg-config to find this software you may need to set: In order to prevent conflicts when programs look for libreadline we areĭefaulting this GNU Readline installation to keg-only.įor compilers to find this software you may need to set:ĬPPFLAGS: -I/usr/local/opt/readline/include This formula is keg-only, which means it was not symlinked into /usr/local,īecause macOS provides the BSD libedit library, which shadows libreadline. => Installing opencv dependency: readline => Installing opencv dependency: pkg-config

Installing dependencies for opencv: pkg-config, readline, sqlite, gdbm, openssl, xz, python3, python, eigen, lame, x264, xvid, ffmpeg, jpeg, libpng, libtiff, ilmbase, openexr, numpy, tbb
