OpenCV的导入和安装问题

时间:2018-06-16 17:39:52

标签: python opencv

我安装了其他所有东西,但似乎无法让它运行。我正在运行macOs High Sierra 10.13.5

Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cv2/__init__.py", line 9, in <module>
    from .cv2 import *
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cv2/cv2.so, 2): no suitable image found.  Did find:
    /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cv2/cv2.so: mach-o, but wrong architecture
    /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cv2/cv2.so: mach-o, but wrong architecture

0 个答案:

没有答案