0
我在Ubuntu通過sudo apt-get install libopencv-dev
OpenCV的安裝,然後在蟒蛇pip install python-opencv
,但如果我嘗試導入CV2模塊我得到的錯誤:蟒蛇找不到OpenCV的
Python 2.7.11 |Anaconda 4.0.0 (64-bit)| (default, Dec 6 2015, 18:08:32)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
>>> import cv2
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named cv2
>>>
我怎樣才能使它發揮作用?
你有沒有試過https://conda.anaconda.org/menpo版本的opencv? – mobcdi