我正在尝试按照本教程安装opencv,但我找不到~/.profile目录。它说我没有权限,当我打开它的时候,它说找不到它,但是当我看到它的时候。我不知道怎么找到它。http://thepetitegeek.blogspot.com/2009/09/installing-opencv-on-mac-os-x-with.html
当我试着执行houghline
File "houghlines.py", line 10, in <module>
from ctypes_opencv.cv import *
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ctypes_opencv/__init__.py", line 18, in <module>
from ctypes_opencv.cxcore import *
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ctypes_opencv/cxcore.py", line 80, in <module>
_cxDLL, _cvDLL, _hgDLL = detect_opencv()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ctypes_opencv/cxcore.py", line 58, in detect_opencv
cxDLL = cdll.LoadLibrary(find_lib('cxcore'))
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/ctypes_opencv/cxcore.py", line 54, in find_lib
raise ImportError("OpenCV's shared library '%s' is not found. Make sure you have its path included in your PATH variable." % name)
ImportError: OpenCV's shared library 'cxcore' is not found. Make sure you have its path included in your PATH variable.发布于 2012-09-22 09:24:56
~/.profile“目录”可能不存在。它是一个文件,您需要在用户目录中创建它。
https://stackoverflow.com/questions/12539817
复制相似问题