title: How to deactivate pyenv virtual environment
body: <p>I'm using Ubuntu 20.04 . I installed pyenv following this  <a href="https://realpython.com/intro-to-pyenv/" rel="nofollow noreferrer">blog</a>.</p>
  <p>How to deactivate an acitvated pyenv - virtualenv
  I tried following</p>
  <blockquote>
  <p>deactivate</p>
  </blockquote>
  <pre><code>pyenv-virtualenv: deactivate must be sourced. Run 'source deactivate' instead of 'deactivate'
  </code></pre>
  <blockquote>
  <p>source deactivate</p>
  </blockquote>
  <pre><code>pyenv-virtualenv: deactivate 3.6.9/envs/word_embedding
  </code></pre>
  <p>In ~/.bashrc I appended following</p>
  <pre><code>export PATH=&quot;$HOME/.pyenv/bin:$PATH&quot;
  eval &quot;$(pyenv init -)&quot;
  eval &quot;$(pyenv virtualenv-init -)&quot;
  </code></pre>