[Solved]-Pip / virtualenv / django installation issue

12👍

First, you should be setting up the virtualenv with --no-site-packages:

virtualenv --no-site-packages …/my-env/

Then you should make sure that you’ve activated it:

. …/my-env/bin/activate

Or, with virtualenv helper:

workon my-env

Then install Django with:

pip install django

4👍

Like David pointed out, you should tell virtualenv not to use packages outside your virtual environment (using the –no-site-packages flag). That’s why “which django-admin.py” returns “/usr/local/bin/django-admin.py”

👤César

Leave a comment