jwm
jwm

Reputation: 5030

conda install opencv ImportError: the specified module could not be found

I installed opencv using the conda command:

conda install -c conda-forge opencv

The installation was successful without errors. Typing conda list also indicates opencv installed. But import cv2 gives the error: DLL load failed: The specified module could not be found.

I note the opencv does not show up in the Lib/site-packages folder, but occurs in the pkgs folder, that is, C:\\Anaconda\\Anaconda3.7\\pkgs\\opencv-4.1.1-py37h6afde12_1. The site-packages folder has a file cv2.cp37-win_amd64.pyd;

What is problem with the import cv2 error? Was the conda-based opencv installation really successful? My python version is python3.7.1.

A similar problem has been reported here DLL load failed error when importing cv2

Upvotes: 0

Views: 269

Answers (2)

jiraiya
jiraiya

Reputation: 28

Did you install the contribution packages of opencv?

Upvotes: 0

kasun perera
kasun perera

Reputation: 28

Try to install with pip. 'pip install opencv-python'

Upvotes: 1

Related Questions