Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing opencv in python

Tags:

python

opencv

I'm having some trouble installing OpenCV. I have been using Anaconda, and I copied the cv2.pyd file into the ...\Lib\site-packages folder. When I get type import cv2 into Python I get this error:

`Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: DLL load failed: The specified module could not be found.`

I've also tried a pip install via command prompt: C:\Users\SCD>pip install cv2 results: `

Collecting cv2
Could not find a version that satisfies the requirement cv2 (from versions: )
No matching distribution found for cv2`

Can someone help?

like image 551
SCD Avatar asked Jun 28 '16 20:06

SCD


Video Answer


1 Answers

Had the same problem, solved by using the below command to install "opencv-python":

pip install opencv-python
like image 121
ElMix Avatar answered Oct 07 '22 20:10

ElMix