I am using Linux (Lubuntu) and have installed virtualenv like so
sudo easy_install virtualenv
and then did
mkdir virt_env
and created a folder which holds the virtualenv's. Next, I did
virtualenv virt_env/virt1 --no-site-packages
and created the environment. Next, I activated it like so:
source virt_env/virt1/bin/activate
and all went well. Then, I did
sudo pip install Django
and it said it is sucesfully installed. I then did
pip freeze
and Django was not listed. I deactivated the virtualenv and did
pip freeze
and Django was there. Why did it install Django systemwide rather than in the virtualenv? I then activated the virtualenv again and tried
sudo pip install Django
and it said
Requirement already satisfied (use --upgrade to upgrade): Django in /usr/local/lib/python2.7/dist-packages
how do I install it in the virtualenv and not systemwide?