So I created a virutal environment. I also sourced it. Then I installed some packages.

Now, I want to change my PYTHONPATH. How?

link|improve this question

Same way as every other environment variable? – Ignacio Vazquez-Abrams Jan 21 '11 at 9:42
usually, I change the file in /etc/profile. But how do I do that in virtualenv? What do I add ? – Alex Jan 21 '11 at 9:49
feedback

2 Answers

You can always change your PYTHONPATH even by request, adding the PYTHONPATH before executing the code or loading your virtual env

PYTHONPATH=blablabla; program execution

You can also change your PYTHONPATH globally in /etc/profile and /etc/bashrc

link|improve this answer
feedback

Have a look at this stakoverflow question and answers which give information on how to do this.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.