1

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

Now, I want to change my PYTHONPATH. How?

Alex
  • 8,471
  • 26
  • 75
  • 99

2 Answers2

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

lynxman
  • 9,397
  • 3
  • 25
  • 28
0

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

user9517
  • 115,471
  • 20
  • 215
  • 297