Skip to content

Instantly share code, notes, and snippets.

@josephabrahams
Last active August 5, 2024 10:38
Show Gist options
  • Save josephabrahams/92ec359eea04556eafd89ac43959a1b0 to your computer and use it in GitHub Desktop.
Save josephabrahams/92ec359eea04556eafd89ac43959a1b0 to your computer and use it in GitHub Desktop.
Install OpenCV 3 on macOS with Homebrew
brew tap homebrew/science
brew install opencv3 --without-numpy --without-python --with-python3
brew link --force opencv3
mkvirtualenv -p python3 cv
pip install numpy
ln -s /usr/local/opt/opencv3/lib/python3.6/site-packages/cv2.cpython-36m-darwin.so \
~/.virtualenvs/cv/lib/python3.6/site-packages
@ndtreviv
Copy link

ndtreviv commented Aug 5, 2024

Error: homebrew/science was deprecated. This tap is now empty and all its contents were either deleted or migrated.

@ndtreviv
Copy link

ndtreviv commented Aug 5, 2024

$ brew install opencv@3
Error: opencv@3 has been disabled because it is not maintained upstream! It will be disabled on 2024-01-31.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment