运行对象检测python脚本时出现以下错误
**Traceback (most recent call last):
File "object_detection_tutorial.py", line 25, in <module>
import cv2
File "/usr/local/lib/python3.6/site-packages/cv2/__init__.py", line 4, in <module>
from .cv2 import *
ImportError: dlopen(/usr/local/lib/python3.6/site-packages/cv2/cv2.cpython-36m-darwin.so, 2): Symbol not found: _clock_gettime
Referenced from: /usr/local/lib/python3.6/site-packages/cv2/.dylibs/libavutil.55.78.100.dylib (which was built for Mac OS X 10.12)
Expected in: /usr/lib/libSystem.B.dylib
in /usr/local/lib/python3.6/site-packages/cv2/.dylibs/libavutil.55.78.100.dylib**
答案 0 :(得分:0)
当我遇到类似的核心错误时(即字符串(which was built for Mac OS X 10.12)
也引发了我的循环),我导入的Python库的特定版本中存在一个错误。
尝试导入较旧的版本/版本,但如果这不起作用,您正在使用的python风格的简单重新安装(通过自制程序)可能是一个快速修复。