我已經(jīng)安裝了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...但是我不知道該通過什么選項,并且對動態(tài)庫還不夠熟悉,無法理解手冊頁,因此我在這里尋求幫助。
添加回答
舉報
0/150
提交
取消