title: virtualenv error bad interpreter: No such file or directory
body: <p>If I attempt to create a virtual env I get this error message, which I do not understand: <strong>bad interpreter: No such file or directory</strong>. I have reviewed <a href="https://stackoverflow.com/questions/47822600/bad-interpreter-no-such-file-or-directory-usr-bin-python">this stack overflow answer</a> and have tried to apply it in the diagnostic steps below.</p>
  
  <p>This is my first day running on Mojave but I don't know if that is a factor in this issue or not.</p>
  
  <p>I have created a new empty folder for the project at <code>/Users/Wes/Dropbox/Programming/Python/glade_againn</code></p>
  
  <p>My plan has been to run the project in the virtualenv <code>/Users/Wes/.virtualenvs/glade_againn</code></p>
  
  <p>However, when I attempt to use virtualenv I get this error message.</p>
  
  <pre><code>$ virtualenv --version
  -bash: /usr/local/bin/virtualenv: /usr/local/opt/python/bin/python2.7: bad interpreter: No such file or directory
  </code></pre>
  
  <p>If I attempt to install virtualenv with PIP I am told it already exists.</p>
  
  <pre><code>$ pip install virtualenv
  Requirement already satisfied: virtualenv in /usr/local/lib/python2.7/site-packages (15.2.0)
  $ 
  </code></pre>
  
  <p>My current PATH is</p>
  
  <pre><code>echo $PATH
  /Library/Frameworks/Python.framework/Versions/3.6/bin:/opt/local/bin:/opt/local/sbin:/usr/local/opt/postgresql@9.4/bin:/usr/local/Cellar/postgresql/9.5.4_1/bin/psql/:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Applications/Wireshark.app/Contents/MacOS:/usr/local/git/bin:/Users/Wes/bin:/sw/bin:/usr/local/bin:/Users/Wes/.sdkman/candidates/groovy/current/bin/
  </code></pre>
  
  <p>If you search for pyth* across all those directories you get this list, in this order.</p>
  
  <pre><code>/Library/Frameworks/Python.framework/Versions/3.6/bin/python3
  /Library/Frameworks/Python.framework/Versions/3.6/bin/python3-config
  /Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6
  /Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6-config
  /Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6m
  /Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6m-config
  /opt/local/bin/python2.7
  /opt/local/bin/python2.7-config
  /opt/local/bin/python3.4
  /opt/local/bin/python3.4-config
  /opt/local/bin/python3.4m
  /opt/local/bin/python3.4m-config
  /opt/local/bin/pythonw2.7
  /usr/local/bin/python-32
  /usr/local/bin/python2-32
  /usr/local/bin/python2.7-32
  /usr/local/bin/python3
  /usr/local/bin/python3-config
  /usr/local/bin/python3.6
  /usr/local/bin/python3.6-config
  /usr/local/bin/python3.6m
  /usr/local/bin/python3.6m-config
  /usr/local/bin/pythoni
  /usr/local/bin/pythoni1
  /usr/local/bin/pythonw-32
  /usr/local/bin/pythonw2-32
  /usr/local/bin/pythonw2.7-32
  /usr/bin/python
  /usr/bin/python-config
  /usr/bin/python2.7
  /usr/bin/python2.7-config
  /usr/bin/pythonw
  /usr/bin/pythonw2.7
  /sw/bin/python2.7
  /sw/bin/python2.7-config
  /usr/local/bin/python-32
  /usr/local/bin/python2-32
  /usr/local/bin/python2.7-32
  /usr/local/bin/python3
  /usr/local/bin/python3-config
  /usr/local/bin/python3.6
  /usr/local/bin/python3.6-config
  /usr/local/bin/python3.6m
  /usr/local/bin/python3.6m-config
  /usr/local/bin/pythoni
  /usr/local/bin/pythoni1
  /usr/local/bin/pythonw-32
  /usr/local/bin/pythonw2-32
  /usr/local/bin/pythonw2.7-32
  </code></pre>
  
  <p>Does anyone have a suggestion on how to get virtualenv to work again?</p>