有思想的Canopy Python和OpenCV

我已经安装了64位的Enthought Canopy Python 2.7.3,它具有OpenCV 2.4.2。当我import cv2收到以下错误时:


>>> import cv2

Traceback (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...但是我不知道该通过什么选项,并且对动态库还不够熟悉,无法理解手册页,因此我在这里寻求帮助。


蝴蝶不菲
浏览 158回答 1
1回答
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Python