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

-2

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

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

Any ideas?

    
asked by anonymous 07.12.2018 / 23:58

1 answer

0

At one time I was also having trouble using OpenCV using the PyCharm IDE and I followed the steps down to solve:

Steps to follow:

1 - Installing Python 2.7.10 or another compatible version
2 - Install Pycharm (if you have not already done so)
3 - Download and install the OpenCV executable. 4 - Adding OpenCV to System Path (% OPENCV_DIR% = / path / of / opencv / directory)
5 - Go to the folder C: \ opencv \ build \ python \ 2.7 \ x86 and copy the file cv2.pyd. 6 - Go to the C: \ Python27 \ DLLs directory and paste the cv2.pyd file. 7 - Go to the directory C: \ Python27 \ Lib \ site-packages and paste the file cv2.pyd. 8 - Go to PyCharm IDE and go to DefaultSettings > PythonInterpreter. 9 - Select the Python that you installed in the first step. 10 - Install the numpy, matplotlib and pip packages in pycharm. 11 - Restart your PyCharm. 12 - PyCharm now has the OpenCV library installed and working.

I hope I have been able to help you.

    
08.12.2018 / 07:56