Created
April 17, 2019 14:39
-
-
Save robie2011/563aaff619d7b7191d4849f0207d2120 to your computer and use it in GitHub Desktop.
opencv installation on mac
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3.7.3 (default, Mar 27 2019, 09:23:15) | |
[Clang 10.0.1 (clang-1001.0.46.3)] on darwin | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> import cv2 | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
File "/usr/local/lib/python3.7/site-packages/cv2/__init__.py", line 89, in <module> | |
bootstrap() | |
File "/usr/local/lib/python3.7/site-packages/cv2/__init__.py", line 79, in bootstrap | |
import cv2 | |
ImportError: dlopen(/usr/local/lib/python3.7/site-packages/cv2/python-3.7/cv2.cpython-37m-darwin.so, 2): Library not loaded: /usr/local/opt/glog/lib/libglog.0.dylib | |
Referenced from: /usr/local/Cellar/opencv/4.1.0_1/lib/libopencv_sfm.4.1.dylib | |
Reason: image not found | |
>>> brew | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
NameError: name 'brew' is not defined | |
>>> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew reinstall glog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew update | |
brew install opencv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment