We recommend to install Python 3 and pip3.
To test your Python version, open the command prompt and type:
On some systems both versions of Python are installed, in that case use python3.
You may like: Python and Django Full Stack Web Developer Bootcamp
Django works with both versions of Python, but Python 2 is legacy.
We use pip to install django:
We then see:
[sudo] password for user:
Downloading Django-1.11.3-py2.py3-none-any.whl (6.9MB)
100% |████████████████████████████████| 7.0MB 107kB/s
Requirement already satisfied: pytz in /usr/lib/python3.6/site-packages (from django)
Installing collected packages: django
Successfully installed django-1.11.3
You can check your version using Python.
On Liux and Mac OS X: