I am attempting to install django to a virtualenv that already exists.
Following the instructions listed on the pip-install website here, I ran the following from SSH.
name@server:~$ . myenv.env/bin/activate (myenv.env)nam@server:~$ pip install django
However at the bottom of the installation, I am seeing this:
creating /usr/local/lib/python2.7/dist-packages/django error: could not create '/usr/local/lib/python2.7/dist-packages/django': Permission denied
It appears that it is trying to install it to the global directory. I do not have sudo privileges. Am I doing something wrong here?
Update: $PATH = /var/django/myenv.env/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games