Help to install Django. When I extract the file the contents have been just dumped all over my Home folder and when I try to either import django or sudo install it I get errors.


2 Answers 2


Unless you need some cutting-edge newest version of Django, I would recommend installing it from Ubuntu's software repositories instead. From a terminal you can do this by typing

sudo apt-get install python-django

The most popular free open source software needed is available in Ubuntu's software repositories so that you won't have to do installations manually.

If you want to list all the subpackages of django that are available, you may use the command

apt-cache search django python

If you prefer not to use the terminal for installation, you can open up Ubuntu Software Centre and search for the packages there. You might have to check "Show technical items" in the bottom left corner for some packages.


An incredibly cool way to install django is this way:

sudo apt-get install python python3 python-pip
sudo pip install django
  • Hello kevlarsen. What does "cool" mean in this context ? Is it better than the accepted solution, and why ? This is a genuine question because I'm aware that sometimes packaged version is not the best choice, sometimes having part of the software installed via apt and part installed via language-specific tools may yield some problems. Thank you. Aug 26, 2014 at 18:02
  • 2
    That is a good question. This person answers it better than me. askubuntu.com/questions/431780/apt-get-install-vs-pip-install Basically, I believe languages and package managers should be installed by apt-get, in order for best compatibility with the OS, but packages for languages should be installed by language-specific package managers to get latest versions and breadth of choices. I use RVM for Ruby, NPM for Node.JS, and PIP for Python
    – kevlarsen
    Dec 5, 2014 at 12:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.