I followed the instructions here to install tesnorflow and opencv for Mac M1. OpenCV installed correctly but I get the following error when I try to look up the version as mentioned in the above link. Upon searching it seems to do something with path but I couldn’t exactly understand how to resolve this. I’m on Monterey 12.4 if that helps.
Traceback (most recent call last):
File “”, line 1, in
ImportError: dlopen(/Applications/miniconda3/envs/coursera-mlops/lib/python3.8/site-packages/cv2.cpython-38-darwin.so, 0x0002): Library not loaded: @rpath/liblapack.3.dylib
Referenced from: /Applications/miniconda3/envs/coursera-mlops/lib/libopencv_core.4.5.3.dylib
Reason: tried: ‘/Applications/miniconda3/envs/coursera-mlops/lib/liblapack.3.dylib’ (no such file), ‘/Applications/miniconda3/envs/coursera-mlops/lib/liblapack.3.dylib’ (no such file), ‘/Applications/miniconda3/envs/coursera-mlops/lib/liblapack.3.dylib’ (no such file), ‘/Applications/miniconda3/envs/coursera-mlops/lib/python3.8/site-packages/…/…/liblapack.3.dylib’ (no such file), ‘/Applications/miniconda3/envs/coursera-mlops/lib/python3.8/site-packages/…/…/liblapack.3.dylib’ (no such file), ‘/Applications/miniconda3/envs/coursera-mlops/bin/…/lib/liblapack.3.dylib’ (no such file), ‘/Applications/miniconda3/envs/coursera-mlops/bin/…/lib/liblapack.3.dylib’ (no such file), ‘/usr/local/lib/liblapack.3.dylib’ (no such file), ‘/usr/lib/liblapack.3.dylib’ (no such file)