I can't seem to get pip to install packages locally on my virtual environment using virtualenv, even if the environment is activated.
For instance I'm trying to install flask
pip freeze | grep flask
Returns nothing... which is expected
Create a virtual env in /var/www/demoapp
virtualenv venv
. venv/bin/activate
At this point the virtualenv is working properly. I can see (venv). I can also see that the right pip is used
which pip
Returns /var/www/demoapp/venv/pip, which is good. However, when I run pip freeze, it returns the whole list of packages installed globally instead of the newly created venv.
What's worst, if I run the command to install flask, it is install globally
sudo pip install flask
deactivate
pip freeze | grep flask
Returns flask... It is NOT installed into the virtual environment.
I did NOT used the --no-site-package option since the virtualenv version I use have the option by default.
Please help !