如何在Mac上安装opencv并在python中使用

时间:2018-02-04 10:04:08

标签: python opencv

我已尝试使用conda install -c conda-forge opencv在我的mac上安装opencv,并在此post中写入。

但是,当我尝试在python中导入cv2模型时。发生错误:

Python 3.6.3 |Anaconda, Inc.| (default, Nov 3 2017, 12:34:11) [GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin Type "help", "copyright", "credits" or "license" for more information. \>>> import cv2 Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: dlopen(/Users/keen/anaconda3/envs/py3/lib/python3.6/site-packages/cv2.cpython-36m-darwin.so, 2): Library not loaded: @rpath/libopenblasp-r0.2.19.dylib Referenced from: /Users/keen/anaconda3/envs/py3/lib/libopencv_hdf.3.2.0.dylib Reason: image not found

看起来python找不到libopenblasp-r0.2.19.dylib

接下来我该怎么办?

0 个答案:

没有答案