我已经安装了64位的Enthought Canopy Python 2.7.3,它具有OpenCV 2.4.2。当我import cv2收到以下错误时:>>> import cv2Traceback (most recent call last): File "<stdin>", line 1, in <module>ImportError: dlopen(/Users/Foo/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/cv2.so, 2): Library not loaded: @executable_path/../Python Referenced from: /Users/Foo/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/cv2.so Reason: image not found这篇文章表明该解决方案可以运行,install_name_tool -change...但是我不知道该通过什么选项,并且对动态库还不够熟悉,无法理解手册页,因此我在这里寻求帮助。
添加回答
举报
0/150
提交
取消