title: Python: How to fix "pyenv: bash: command not found"
body: <p>I use <code>pyenv</code> to manage my Python environments and I get the following when simply running <code>bash</code>.</p>
  
  <pre><code>$ bash
  pyenv: bash: command not found
  </code></pre>
  
  <p>I was trying to troubleshoot why <code>pipenv shell</code> failed with the above error, which is how I found out even <code>bash</code> wasn't working. I tried updating <code>pipenv</code> via <code>brew</code> and ran <code>pyenv rehash</code> to regenerate the shims. And <code>bash</code> is definitely present.</p>
  
  <pre><code>$ which bash
  /bin/bash
  </code></pre>
  
  <p>I expected that if <code>pyenv</code> doesn't find a command, the subsequent paths specified by the <code>PATH</code> environment variable will be searched. Interestingly if I execute some non-existant command I don't get a <code>pyenv</code> error.</p>
  
  <pre><code>$ someboguscommand
  -bash: someboguscommand: command not found
  </code></pre>
  
  <p>This suggests to me that <code>pyenv</code> doesn't even search for a matching command in this case and the subsequent paths in <code>PATH</code> are searched, so there must be some special handling with <code>bash</code>.</p>