ImportError: DLL load failed: The specified module was not found. Will not see cv2

The program uses cv2, I work in conda. Recently, everything worked fine, but then this error began to occur. I recently started working with python, tried installing again through conda install-c menpo opencv and through the built-in pycharm tools, did not help.

''' Traceback (most recent call last): File "", line 1, in File "C:\Program Files\JetBrains\PyCharm Community Edition 2019.3.3\plugins\python-ce\helpers\pydev_pydev_bundle\pydev_umd.py", line 197, in runfile pydev_imports.execfile(filename, global_vars, local_vars) # execute the script File "C:\Program Files\JetBrains\PyCharm Community Edition 2019.3.3\plugins\python-ce\helpers\pydev_pydev_imps_pydev_execfile.py", line 18, in execfile exec(compile(contents+"\n", file, 'exec'), glob, loc) File "C:/conda/env/прибор 2.7 2/main.py", line 1, in from function import * File "C:\Program Files\JetBrains\PyCharm Community Edition 2019.3.3\plugins\python-ce\helpers\pydev_pydev_bundle\pydev_import_hook.py", line 21, in do_import module = self._system_import(name, *args, **kwargs) File "C:\conda\env\device 2.7 2\function.py", line 1, in import cv2 as cv File "C:\Program Files\JetBrains\PyCharm Community Edition 2019.3.3\plugins\python-ce\helpers\pydev_pydev_bundle\pydev_import_hook.py", line 21, in do_import module = self._system_import(name, *args, **kwargs) ImportError: DLL load failed: Not found the specified module. '''

Author: Ivan Efan, 2020-03-26

1 answers

Manual installation of opencv helped, I tried it in other environments (pipenv, openenv), there this problem was absent. https://www.cyberforum.ru/python-graphics/thread2337357.html

 0
Author: Ivan Efan, 2020-03-26 17:01:32