title: Flask virtual environment: bad interpreter: No such file or directory
body: <p>I'm working on a little side project and it's my first time using Flask. 
  I'm working with a virtual environment and therefore I have a shebang at the beginning of my script, that looks like this</p>
  
  <pre><code>#!flask/bin/python
  </code></pre>
  
  <p>When I try to execute my script from the command line, I get the following error:</p>
  
  <pre><code>-bash: ./run.py: flask/bin/python^M: bad interpreter: No such file or directory
  </code></pre>
  
  <p>I know that this means that the python interpreter couldn't be found, but if I navigate into flask/bin i can see the interpreter inside. Those are all the files inside of flask/bin</p>
  
  <blockquote>
    <p>activate<br>
    activate.csh<br>
    activate.fish<br>
    activate_this.py<br>
    easy_install<br>
    easy_install-2.7<br>
    pip<br>
    pip2<br>
    pip2.7<br>
    python<br>
    python-config<br>
    python2 -> python<br>
    python2.7 -> python<br>
    wheel  </p>
  </blockquote>
  
  <p>I tried to delete my virtual environment directory and create it again, but this didn't help.</p>
  
  <p>Why does my shebang not work in this case?</p>