On 19/12/12 15:38:01, rhythmicde...@gmail.com wrote:
> Just installed a brand new virtualenv along with two packages. Ran this and I 
> got nothing:
> 
> (venvtest)[swright@localhost venvtest]$ python -m site
> (venvtest)[swright@localhost venvtest]$ 
>
> I expected to have at least one path in sys.path

For some reason, that doesn't work with python2.7.
I guess that's a bug in 2.7.

One variant that does work, is:

    python -c 'import site; site._script();'

Another would be:

    python /usr/lib/python2.7/site.py

If you think you may have accidentally deactivated your
virtualenv, you can do:

    python -c 'import sys; print sys.executable;'

Your prompt suggests that "venvtest" is active.
However, it's possible to deactivate a virtualenv without
resetting the prompt; you may have unintentionally done that.
If that's the problem, you can solve it by sourcing the
"activate" script again.


Hope this helps,

-- HansM






-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to