I just installed Opencv 3.2 using conda forge on Anaconda with python 3.6. While using bash to run import cv2
works alright, running this command on fish shell outputs this error message.
import cv2
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: dlopen(/Users/vicarious/anaconda/lib/python3.6/site-packages/cv2.so, 2): Library not loaded: @rpath/libopencv_hdf.3.2.dylib
Referenced from: /Users/vicarious/anaconda/lib/python3.6/site-packages/cv2.so
Reason: image not found
I checked out this question and added set -x DYLD_FALLBACK_LIBRARY_PATH /Users/vicarious/anaconda/lib/ $DYLD_FALLBACK_LIBRARY_PATH
fish config file which did not help.
I also disabled MacOS Sierra SIP as it apparently does not let DYLD_FALLBACK_LIBRARY_PATH to be changed. But I still get the same error.
What should I do?