我厭倦了導入cv和numpy並且得到錯誤。我開始進口的簡歷和我得到這個錯誤:Numpy和OpenCV
ImportError: numpy.core.multiarray failed to import
Traceback (most recent call last):
File "", line 1, in <module>
File "/usr/lib/pymodules/python2.7/cv.py", line 1, in <module>
from cv2.cv import *
ImportError: numpy.core.multiarray failed to import
因此,我安裝numpy的Ubuntu上使用:
apt-get install python-numpy
所以,當我導入numpy的,我得到:
Traceback (most recent call last):
File "", line 1, in <module>
File "numpy/init.py", line 127, in <module>
raise ImportError(msg)
ImportError: Error importing numpy: you should not try to import numpy from
its source directory; please exit the numpy source tree, and relaunch
your python intepreter from there.
我真的需要幫幫我。我在Ubuntu上使用Python 2.7.3。
哦,你是我的上帝! – Meni
在openCV中玩得開心 – waitingkuo