Installing Django

Install Django?

We recommend to install Python 3 and pip3.

To test your Python version, open the command prompt and type:

python –version

On some systems both versions of Python are installed, in that case use python3.

Note: Django works with both versions of Python, but Python 2 is a legacy version.

 

You may like: Python and Django Full Stack Web Developer Bootcamp

Installing Django

We use pip to install django:

pip3 install django

We then see:

pip3 install django
[sudo] password for user:
Collecting django
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

Django version

You can check your version using Python.

On Liux and Mac OS X:

python3 -m django –version

On windows:

py -3 -m django –version
Previous Post
Next Post

Leave a Reply