title: "python.exe can't find '__main__' module in ..." Error when trying to run python script opencv_blink_detect.py in virtual environment,
body: <p>Apologies if there's missing information. I'm using python for medical research and am trying to run a program to count the number of blinks via video footage.
  <a href="https://github.com/skvrahul/blink_detect" rel="nofollow noreferrer">https://github.com/skvrahul/blink_detect</a></p>
  
  <p><a href="https://i.stack.imgur.com/5nzV0.png" rel="nofollow noreferrer">The script is located here</a></p>
  
  <p><a href="https://i.stack.imgur.com/cqcIc.png" rel="nofollow noreferrer">My virtual environment is set up here:</a></p>
  
  <p>Package install instructions were followed from <a href="https://www.learnopencv.com/install-opencv-3-and-dlib-on-windows-python-only/" rel="nofollow noreferrer">here</a></p>
  
  <p><a href="https://i.stack.imgur.com/oYEQX.png" rel="nofollow noreferrer">Terminal open via Anaconda</a></p>
  
  <p><a href="https://i.stack.imgur.com/Ye12y.png" rel="nofollow noreferrer">Attempt to run via readme instructions</a></p>
  
  <p><a href="https://i.stack.imgur.com/jHYXt.png" rel="nofollow noreferrer">Attempt to direct terminal to look at file path</a></p>
  
  <p>As you can see, the error message is</p>
  
  <p>(opencv-env) C:\Users\wmj>python C:\Users\wmj\Documents\Python Scripts\Biometrics\blink_detect-master.py -p -sp.dat
  C:\Users\wmj\AppData\Local\Continuum\anaconda3\envs\opencv-env\python.exe: can't find '<strong>main</strong>' module in 'C:\Users\wmj\Documents\Python'</p>
  
  <p>The contents of C:\Users\wmj\Documents\Python is just Anaconda3-2018.12-Windows-x86_64</p>
  
  <p><strong>I have searched online and most solutions to this problem seem to be either solved by modifying the .py file or doing something with Pycharm</strong></p>
  
  <p><em>What is the solution to this? I want to be able to run the script as a demonstration to my supervisor</em></p>
  
  <p>Thank you,</p>
  
  <p>WW</p>