installing Django in a venv

Asked

Viewed 155 times

1

I am trying to install the latest version of Django (1.9.6) in my virtualenv, but when I use the Pip install Django command, within the virtual environment, I get the following return:

Requirement already satisfied (use --upgrade to upgrade): django==1.9.6 in /usr/local/lib/python2.7/dist-packages
  • Look man, are you sure the virtual environment is activated? It is saying that Django is already in the latest version. However, this latest version is in a system folder and not in a virtual environment.

  • Enter the venv using the code source /venv/bin/activate. If already on virtualenv post what returns on pip freeze

1 answer

1

The message tells you to use --upgrade command, because Django is already installed.

Use:

pip install --upgrade django

Thus the old version will be replaced by the newer one

Browser other questions tagged

You are not signed in. Login or sign up in order to post.