开发者

Python: How do I install django-extensions into a virtualenv?

开发者 https://www.devze.com 2023-02-17 06:14 出处:网络
I\'ve created a virtualenv with -no-sitepackages. I\'d like to install django-extensions into this virtualenv. The thing is when I run:

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消