How to setup latest version of Django framework with Python 3 on Debian 8 Jessie Linux

The following quick guide will help you to setup a latest version of Django framework with Python 3 on Debian Jessie Linux. The current default Django version on Debian 8 Jessie Linux is 1.7 with python 2.7. Follow the below step in order to install Python 3 with latest Django. Let’s start by installation of python3-setuptools:

# apt-get install python3-setuptools

The above command will also install Python 3 on your system. Next, use easy_install3 to install alternative Python package installer pip:

# easy_install3 pip

At this point we can use pip to fetch and install latest Django framework version:

# pip3 install Django

Alternatively install any other desired version. For example the following linux command will install Django 1.8.9:

# pip3 install Django==1.8.9

All done. Now change to a regular user to confirm the installation. If there are more than one Python versions available on your system switch to python 3 or simply create a quick alias for this the current shell session:

$ alias python='/usr/bin/python3.4'
$ python --version
Python 3.4.2

Check Django framework version:

$ python -c "import django; print(django.get_version())"
1.9.7
OR
$ django-admin --version
1.9.7