title: Deactivate pyenv in current shell
body: <p>My .bashrc has this:</p>
  
  <pre><code>enable-pyenv () {
      # Load pyenv automatically by adding
      # the following to your profile:
  
      export PATH="$HOME/.pyenv/bin:$PATH"
      eval "$(pyenv init -)"
      eval "$(pyenv virtualenv-init -)"
  }
  
  enable-pyenv
  </code></pre>
  
  <p>Which enables pyenv. In some situations, I want to (temporarily) disable pyenv. How can I do this?</p>