How to resolve module error not found? (Installing opencv-python)

Asked

Viewed 1,065 times

-2

I installed opencv-python by Anaconda, but when I try to import it the error is presented:

DLL load failed: Não foi possível encontrar o módulo especificado. 

Any idea?

1 answer

0

At one time I was also having problems using Opencv using the Pycharm IDE and followed the steps below to resolve:

Steps to follow:

1 - Install Python 2.7.10 or other compatible version
2 - Install Pycharm (if you haven’t already done it)
3 - Download and install the Opencv executable.
4 - Add Opencv to the system path (%OPENCV_DIR%=/path/of/opencv/directory)
5 - Go to the C folder: opencv build python 2.7 x86 and copy the cv2.pyd file.
6 - Go to the directory C: Python27 Dlls and paste the cv2.pyd file.
7 - Go to the directory C: Python27 Lib site-Packages and paste the cv2.pyd file.
8 - Go to Pycharm IDE and go to Defaultsettings > Pythoninterpreter.
9 - Select the Python you installed in the first step.
10 - Install numpy, matplotlib and Pip packages in pycharm.
11 - Restart your Pycharm.
12 - Pycharm now has the Opencv library installed and running.

I hope I’ve been able to help you.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.