Pages

5/22/2016

python django installation on ubuntu

If you wish to install Django using the Ubuntu repositories, the process is very straight forward.

First, update your local package index with apt, and then install the python-django package:
sudo apt-get update
sudo apt-get install python-django
You can test that the installation was successful by typing:
django-admin --version 
 
If you wish to install the latest version of Django globally, a better option is to use pip, the Python package manager. First, we need to install the pip package manager. Refresh your apt package index:
sudo apt-get update
Now you can install pip. If you plan on using Python version 2, install using the following commands:
sudo apt-get install python-pip
Now that you have pip, we can easily install Django. If you are using Python 2, you can type:
sudo pip install django

You can verify that the installation was successful by typing:
django-admin --version 
 

No comments:

Post a Comment

widget

selenium javascript alert box

This is a easy task to capture javascript based alertbox , /* * To change this license header, choose License Headers in Project Properti...