Milano
Milano

Reputation: 18745

Installed Django 1.9 but Virtual Environment uses 1.8.7

I'm trying to use a new version of Django (1.9). I've created a virtual environment (venv) in which I've installed new Django (1.9). Everything seems to work correctly but when I do manage.py runserver it seems that it uses older version of Django (1.8.7).

My venv is activated so I don't know why it behaves this way.

I'm attaching cmd commands from scratch: enter image description here

Do you know where is the problem?

Upvotes: 0

Views: 220

Answers (2)

rfkortekaas
rfkortekaas

Reputation: 6474

The shebang line in the manage.py points to the global installed python. If you change it to the venv python it should work as used normally.

Upvotes: 2

Eugene Primako
Eugene Primako

Reputation: 2817

I guess manage.py uses system-wide python executable: look at its shebang (first line). Try running python manage.py ...

Upvotes: 6

Related Questions