So, this answer is, in theory, already out there. However, after reading a bunch of questions on SO, I am still at a loss of how exactly to get a fresh / clean virtualenv up and running. The problem appears to be some variation on the fact that I have added PYTHONPATH to my system environment. What I'd like to do, is remove that for the purposes of the virtualenv. Unfortunately, I have no idea how to do that:
- What file do I edit?
- Where?
- Is there a way to do this so that, in the future when I start a virtualenv, I don't have to similarly edit whatever I'm going to have to edit to fix this problem (this problem has been happening for long enough that I imagine it has been solved)?
- Should I be using
virtualenvwrapper
to help me here (I've seen that referenced in respect of this problem a number of times)? - Generally: halp?
As I understand it, the steps are:
- Install virtualenv: check
- Create a virtualenv using the --no-site-packages flag: check
- pip freeze: what the? All these packages!!
- figure out how to remove PYTHONPATH from virtualenv: I have no idea.