尝试导入 cv2 时出现以下错误。我已经安装了 opencv,它在 python 上运行良好,但在 Anaconda 上运行良好。
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: dlopen(/usr/local/lib/python2.7/site-packages/cv2.so, 2): Symbol not found: _PyCObject_Type
Referenced from: /usr/local/lib/python2.7/site-packages/cv2.so
Expected in: flat namespace
in /usr/local/lib/python2.7/site-packages/cv2.so