0

I have installed opencv on my system without any issues with following command:

pip install opencv-python

Installation was successful, but when tried importing open cv in Spyder it throws bellow error:

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

I have referred this post on stack over flow: DLL load failed error when importing cv2 tried all the possible recommends mentioned, but no luck!

And when the same thing I tried on Command Prompt - python there isn't any error. Code works completely fine.

enter image description here

enter image description here

  • 1
    is spyder using the same python interpreter? – Belial Nov 30 '20 at 17:49
  • I googled a while, but, could you please help in finding the same ? @Belial – PiyushGovekar Nov 30 '20 at 18:49
  • configure spyder with the same python interpreter as in cmd. And try this link. https://stackoverflow.com/questions/51077327/import-error-while-importing-cv2-in-spyderpython-3-6 – Praveen Manupati Dec 01 '20 at 06:24
  • no idea how can I help remotely :) anyhow I would recommend upgrade python to the latest major version on both interpreters and then install opencv again. – Belial Dec 01 '20 at 14:00
  • (*Spyder maintainer here*) If you want to use complex libraries like OpenCV, you should definitely try [Anaconda](https://www.anaconda.com/download/) instead of using a regular Python installation. Please see [our video](https://www.youtube.com/watch?v=Ul79ihg41Rs) on how to uninstall your current Python and install Anaconda instead. – Carlos Cordoba Dec 05 '20 at 23:53

0 Answers0