Installation
Pipe is a external import manage system.
This sesction will tell you how to install pipe into your ubuntu linux.
~$ sudo apt-get install python3-pip
install pip in python3
~$ sudo apt-get install python3-venv
venv should contain in python3 package.If not, just apt one for yourself!
~$ mkdir ~/django-tutorial
~$ mkdir ./django-tutorial/django-venv
Create a app folder for django in your home folder
Also another folder for installing virtual environment which named venv in app folder.
~/django-tutorial$ python3 -m venv django-venv
After that, create your venv in django-venv folder.
~/django-tutorial$ . ./django-venv/bin/active
and than active your venv.
(django-venv) ~/django-tutorial$
If you see there is a pair of parentheses contains your venv folder's name,
It means you are in it!
(django-venv) ~/django-tutorial$ pip install django
Which pip will handle all installation of django without root permission.
Be advised that you must install every python package you need in venv.
Or it might cause any other unknown interference by other python script.
Examination
(django-venv) ~/django-tutorial$ python
open python interpreter
>>> import django
>>> django.VERSION
import django and print it's version
(1, 11, 1, 'final', 0)
this shows we installed 1.11.1 version's django.