Reputation: 91
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?
Upvotes: 9
Views: 16092
Reputation: 311
Had the same problem, solved by using the below command to install "opencv-python":
pip install opencv-python
Upvotes: 31
Reputation: 25
Try running the following:
$ python
>>> import cv2
>>> print cv2.__version__
Upvotes: -3
Reputation: 7
I think the proper input should be 'import cv2' not 'install cv2'. After this print cv2.version should show you that it installed properly. Hope this helps.
Upvotes: -1