title: ModuleNotFoundError: No module named 'cv2'
body: <p>I have been working on this error for a long time now. I have Python 3.6 and Python 2.7. I have tried to install opencv 2 and 3 in Python 2.7 and Python 3.6 respectively. I know the python interpreter I am using and I can interchange between them when I want. </p>
  
  <p>When I run Python interpreter and write <code>import cv2</code> it does import it. When I run the code from command prompt it says <em>ModuleNotFoundError: No module named 'cv2'</em>.
  The module is installed. The cv2.pyd file is in <code>C:\Python27\Lib\site-packages</code> I have attached a screen shot which shows the modules in Python27</p>
  
  <p><a href="https://i.stack.imgur.com/4srYG.png" rel="noreferrer"><img src="https://i.stack.imgur.com/4srYG.png" alt="enter image description here"></a> </p>
  
  <p>I have used <code>pip install opencv-python</code>. I have downloaded the module from different sites and manually copy pasted it in the correct folder. Nothing works and I am seriously short of ideas now.</p>
  
  <p><strong>EDIT:</strong> I am on windows 10 with python 3.6 installed through anaconda and python 2.7 installed directly. Both have their variables set in the path</p>