In my /etc/profile, I set PYTHONPATH as something.
But when I source myvirtual-env
And then do this in python:
>>> import sys
>>> print sys.path
I don't see my paths anywhere.
That's the point of the virtualenv. It doesn't inherit from the rest of your setup. If you want a PYTHONPATH, you need to explicitly set one.
This djangousers post is probably helpful, you want to use virtualenvwrapper to solve this problem.
More info in this other SO post on a similar problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With