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..?