Skip to content

running open cv on a Mac M1 machine with python 3.9 natively #550

Closed
@mv96

Description

@mv96

pip command used to install - pip install opencv-python

----> 9 import cv2

/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/cv2/init.py in
----> 5 from .cv2 import *

ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/cv2/cv2.cpython-39-darwin.so, 2): Library not loaded: /opt/homebrew/opt/ffmpeg/lib/libavcodec.58.dylib
Referenced from: /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/cv2/cv2.cpython-39-darwin.so
Reason: image not found

Any help would be appreciated ?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions