[Answer]-Django – ./manage.py defaults to python 2.x

1👍

The easiest way to fix it is to change the first line in your ./manage.py to

#!/usr/bin/env python3

However it is much better to use virtualenv to manage all your python environments.

👤Yossi

0👍

Also you can point desired version of python:

python3 manage.py ...

…or even:

/usr/bin/python3 manage.py ....

Leave a comment