title: How do I set the correct $PATH for Python in zsh?
body: <p>Today I made the switch from bash to zsh. Among other things, I created a ~/.zshrc file. There were a few hiccups, though. One of them is that while I can still run Python programs that will output to the shell, before they do I get the following error:</p>
  
  <pre><code>new-host-3% python program.py
  zsh: /usr/bin/python: bad interpreter: /Library/Frameworks/Python.framework/Versions/2.7/bin/python2.: no such file or directory
  </code></pre>
  
  <p>Here's my current, very basic ~/.zshrc:</p>
  
  <pre><code>Set $PATH
  export PATH="/usr/local/bin:$PATH"
  
  # Export to vim
  export EDITOR="vim"
  bindkey -v
  
  ## vi style incremental search
  bindkey '^R' history-incremental-search-backward
  bindkey '^S' history-incremental-search-forward
  bindkey '^P' history-search-backward
  bindkey '^N' history-search-forward
  
  ## Make moving inside a directory easier
  setopt AUTO_CD
  </code></pre>
  
  <p>What am I missing here? I've installed Python, zsh, virtualenv, &amp;c via homebrew on OS X 10.6.8. I'm running Python 2.7.6.</p>
  
  <p>Everything worked with bash; no errors. That makes me think the problem is zsh and its configuration. </p>