Skip to content

ImportError: DLL load failed: The specified module could not be found #174

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
IlyaDanilenko opened this issue Feb 17, 2019 · 4 comments
Closed

Comments

@IlyaDanilenko
Copy link

I have 64-bit Python 3.7.2 from python.org installed on Windows 10 Professional 64-bit. PIP upgraded to the latest version, Both (32 and 64-bit) VS2015 C++ Redistributable exists. After PIP install opencv-contrib-python i've got folder and files for opencv 4.0.0.21 in my Python directory on disk. Seems everything is fine. But import cv2 command doesn't work. I have error: ImportError: DLL load failed: The specified module could not be found.

@skvark
Copy link
Member

skvark commented Feb 17, 2019

Check the missing dependency with https://github.com/lucasg/Dependencies

@IlyaDanilenko
Copy link
Author

image
Seems there are three missing dependences.

@skvark
Copy link
Member

skvark commented Feb 18, 2019

I'm pretty sure there's some Windows package missing (hard to say if those dependencies are false positives or not).

  1. Check that you do not have any conflicting cv2 installation anywhere: create a new fresh virtualenv and install opencv-python there - does the import work?
  2. If the above does not help, try to install latest redistributables again: https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads

Also have a look at this (probably does not help as you are not using Windows Server version): https://github.com/skvark/opencv-python/pull/170/files

Check also this: #154 (comment)

@skvark
Copy link
Member

skvark commented Apr 5, 2019

Closing for inactivity.

@skvark skvark closed this as completed Apr 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants