I've created a virtualenv with -no-sitepackages. I'd like to install django-extensions into this virtualenv. The thing is when I run:
python setyp.py install
from within the virtualenv, it creates and writes to
/usr/local/lib/python2.6/dist-packages/django_extensions-0.4.1.egg-info.
What开发者_开发问答's the correct way to get django-extensions into a virtualenv?
Thanks.
Run pip install -E your_virtualenv_here django-extensions
, then just activate and you're set.
Are you sure you have activated your virtualenv? Usually you use source <virtualenv_path>/bin/activate
. Check for a $VIRTUAL_ENV environment variable as well.
精彩评论