5월, 2017의 게시물 표시

Installing OpenCV3 for python3 with homebrew. numpy should be installed before!

You can find lots of articles about how to install OpenCV3 for python3 with homebrew. If it doesn't create python bindings for python3, it is because you don't have numpy on your python3 environment. CAUTION : you MUST NOT use pyenv or virtualenv generated python environment while installing a package with homebrew. refer  http://docs.brew.sh/Homebrew-and-Python.html  ( Virtualenv WARNING:  When you  brew install  formulae that provide Python bindings, you should  not be in an active virtual environment . Activate the virtualenv  after  you’ve brewed, or brew in a fresh Terminal window. Homebrew will still install Python modules into Homebrew’s  site-packages  and  not  into the virtual environment’s site-package. Virtualenv has a switch to allow “global” (i.e. Homebrew’s)   site-packages to be accessible from within the virtualenv. ) Install numpy  on your python3 environment before.(Do not use pyenv or ...