サブロウ丸

主にプログラミングと数学

opencv3.3.0 インストール エラー

brewにてopencv3のupgradeがあったのですが

homebrew/science/opencv3 3.3.0_1
==> Upgrading homebrew/science/opencv3 --with-python3
==> Downloading https://github.com/opencv/opencv/archive/3.3.0.tar.gz
Already downloaded: /Users/tateiwanariaki/Library/Caches/Homebrew/opencv3-3.3.0.tar.gz
Error: opencv3: Does not support building both Python 2 and 3 wrappers


というエラーが。
brew upgrade opencv3 --with-python3 --without-pythonで上手くいくらしいのですが、エラーが消えず。

はぁ、と思っていたところ、brew uninstall opencv3で一度アンインストールした後で、
brew install opencv3 --with-python3 --without-pythonとすると無事インストールできました。

$ brew install opencv3 --with-python3 --without-python
==> Installing opencv3 from homebrew/science
==> Downloading https://github.com/opencv/opencv/archive/3.3.0.tar.gz
Already downloaded: /Users/???/Library/Caches/Homebrew/opencv3-3.3.0.tar.gz
==> cmake .. -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/opencv3/3.3.0_1 -DCMAKE_BUILD_TYPE=R
==> make
==> make install
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local,
because opencv3 and opencv install many of the same files.

If you need to have this software first in your PATH run:
  echo 'export PATH="/usr/local/opt/opencv3/bin:$PATH"' >> ~/.bash_profile

For compilers to find this software you may need to set:
    LDFLAGS:  -L/usr/local/opt/opencv3/lib
    CPPFLAGS: -I/usr/local/opt/opencv3/include
For pkg-config to find this software you may need to set:
    PKG_CONFIG_PATH: /usr/local/opt/opencv3/lib/pkgconfig