0

The issue is exactly opposite of this issue.

I have installed OpenCV as mentioned in its documentation on windows 10. (Copying a file into python lib directory).

When I import cv2 from the python IDLE, its working fine but when I use command prompt or Powershell it doesn't work. I'm not using anaconda or Jupiter-notebook or something else as deployment.

What is the issue here..?

enter image description here

1 Answers1

1

According to your screenshots IDLE is running Python 2.7.13, while in CMD you're on 3.6.4.

These versions have separate lib folders, so you should check whether you installed OpenCV properly on both versions.

Or just stick with Python 2 on CMD.

s1hofmann
  • 1,491
  • 1
  • 11
  • 22