title: How do I reset PYTHONPATH to "default" value in virtualenv?
body: <p>I was struggling with installing dependencies for an external library (the requirements were already fulfilled) when I read that I should check if the install path is in my PYTHONPATH. It wasn't, so I looked up how to add it.</p>
  <p>I came across this answer, and typed the code straight into the Terminal (not <code>~/.bashrc</code>) before I finished reading.</p>
  <blockquote>
  <p>If you're using bash (on a Mac or GNU/Linux distro), add this to your ~/.bashrc</p>
  <p><code>export PYTHONPATH=&quot;${PYTHONPATH}:/my/other/path&quot;</code></p>
  </blockquote>
  <p>The path was I entered was <code>/usr/bin/python</code>.</p>
  <p>Surprisingly this fixed all of my dependency problems.</p>
  <p><strong>However</strong>, since my Django project is dependent on a virtualenv, this ruined everything. I can no longer find how or where to restore my PYTHONPATH to.</p>
  <p>I tried <code>export PYTHONPATH=&quot;/home/[username]/.virtualenvs/[env]/bin/python&quot;</code> and also deleting the virtualenv with <code>rmvirtualenv</code>.</p>
  <p>My next plan is to delete the project and pull again.</p>