Fehler beim Importieren von cv2 in Python 2.7 unter OSX El Capitan: Bibliothek nicht geladen: libwebp.6.dylibPython

Python-Programme
Anonymous
 Fehler beim Importieren von cv2 in Python 2.7 unter OSX El Capitan: Bibliothek nicht geladen: libwebp.6.dylib

Post by Anonymous »

Ich habe OpenCV 3.1 auf Mac OSX installiert und erstelle auch einen Symlink in

Code: Select all

/Library/Python/2.7/site-packages:
cv2.so -> /usr/local/Cellar/opencv3/3.1.0_3/lib/python2.7/site-packages/cv2.so
Aber wenn ich cv2 in das Terminal importiere, bekomme ich diesen Fehler:

Code: Select all

>>> import cv2
Traceback (most recent call last):
File "", line 1, in 
ImportError: dlopen(/Library/Python/2.7/site-packages/cv2.so, 2): Library not loaded: /usr/local/opt/webp/lib/libwebp.6.dylib
Referenced from: /usr/local/Cellar/opencv3/3.1.0_3/lib/libopencv_imgcodecs.3.1.dylib
Reason: image not found
Dann habe ich versucht, WebP über den Mac-Port zu installieren:

Code: Select all

sudo port install webp
Aber danach bekam ich beim Importieren von cv2 in Python immer noch die obige Fehlermeldung:

Code: Select all

ImportError: dlopen(/Library/Python/2.7/site-packages/cv2.so, 2): Library not loaded: /usr/local/opt/webp/lib/libwebp.6.dylib

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post