python的opencv模块_我的python-opencv加载不了cv模块

xf3i@debian:~$ dpkg -L python-opencv

/.

/usr

/usr/lib

/usr/lib/python-support

/usr/lib/python-support/python-opencv

/usr/lib/python-support/python-opencv/python2.5

/usr/lib/python-support/python-opencv/python2.5/opencv

/usr/lib/python-support/python-opencv/python2.5/opencv/_highgui.so

/usr/lib/python-support/python-opencv/python2.5/opencv/_cv.so

/usr/share

/usr/share/doc

/usr/share/doc/python-opencv

/usr/share/doc/python-opencv/copyright

/usr/share/doc/python-opencv/changelog.Debian.gz

/usr/share/doc/python-opencv/changelog.gz

/usr/share/python-support

/usr/share/python-support/python-opencv

/usr/share/python-support/python-opencv/opencv

/usr/share/python-support/python-opencv/opencv/highgui.py

/usr/share/python-support/python-opencv/opencv/__init__.py

/usr/share/python-support/python-opencv/opencv/matlab_syntax.py

/usr/share/python-support/python-opencv/opencv/cv.py

/usr/share/python-support/python-opencv/opencv/adaptors.py

xf3i@debian:~$

xf3i@debian:/usr/share/python-support/python-opencv$ cd opencv/

xf3i@debian:/usr/share/python-support/python-opencv/opencv$ ls

adaptors.py cv.py highgui.py __init__.py matlab_syntax.py

xf3i@debian:/usr/share/python-support/python-opencv/opencv$ python

Python 2.5.2 (r252:60911, May 15 2008, 17:59:19)

[GCC 4.3.1 20080501 (prerelease)] on linux2

Type "help", "copyright", "credits" or "license" for more information.

>>> import cv

Traceback (most recent call last):

File "", line 1, in

File "cv.py", line 5, in

import _cv

ImportError: No module named _cv

>>>

不知道为什么不能导入cv模块?python-opencv里边只有_cv.so cv.py两个文件

>>> import highgui

Traceback (most recent call last):

File "", line 1, in

File "highgui.py", line 5, in

import _highgui

ImportError: No module named _highgui

>>>

不知道python默认的import的搜索路径是什么?

作者: xf3i

发布时间: 2008-05-17

你可能感兴趣的:(python的opencv模块)