After having installed a new virtualenv, for example called ENV, if I type
. /path/to/ENV/bin/activate python import os print os.environ['VIRTUAL_ENV'] Then I see the /path/to/ENV/
However, if I type
/path/to/ENV/bin/python And then
import os print os.environ['VIRTUAL_ENV'] I've got a key error So what is the fundamental difference between these two methods? Thanks,