Ich habe Probleme mit der Installation von opencv mit Python 3.5.Python OpenCV Importfehler mit Python 3.5
Ich habe die cv-Dateien verknüpft, sondern auf import cv2
bekomme ich eine Fehlermeldung, ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/cv2.so, 2): Symbol not found: _PyCObject_Type
oder genauer gesagt:
/Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5 /Users/Jamie/Desktop/tester/test.py Traceback (most recent call last): File "/Users/Jamie/Desktop/tester/test.py", line 2, in import cv File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/cv.py", line 1, in from cv2.cv import * ImportError:dlopen(/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/cv2.so, 2): Symbol not found: _PyCObject_Type Referenced from: /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/cv2.so Expected in: flat namespace in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/cv2.so
I cv.py und cv2.so von Ort /usr/local/Cellar/opencv/2.4.12_2/lib/python2.7/site-packages
in richtig verbunden haben /Library/Frameworks/Python.framework/Versions/3.5/bin
Würde jemand bitte helfen können?
Vielen Dank
Sind Sie ein opencv für Python kompiliert zu laden versuchen, 2 mit Python 3.5? Es wird nicht funktionieren. Ich habe hier dokumentiert, wie ich vor ein paar Monaten opencv3 für Python 3 kompiliert habe, wenn es hilft: https://github.com/julienpalard/grid-finder –