3

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.

Tim
  • 32,861
  • 27
  • 118
  • 178
lightning
  • 643

2 Answers2

6

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.

dragly
  • 320
1

An incredibly cool way to install django is this way:

sudo apt-get install python python3 python-pip
sudo pip install django
kevlarsen
  • 11
  • 1
  • 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. – Stéphane Gourichon Aug 26 '14 at 18:02
  • 2
    That is a good question. This person answers it better than me. http://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 05 '14 at 12:14