1

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

Now, I want to change my PYTHONPATH. How?

2
  • Same way as every other environment variable? Jan 21, 2011 at 9:42
  • 1
    usually, I change the file in /etc/profile. But how do I do that in virtualenv? What do I add ?
    – Alex
    Jan 21, 2011 at 9:49

2 Answers 2

1

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

0

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .