Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install django 1.4

Tags:

python

django

When trying to download django through:

sudo pip uninstall django

However, this downloads the new version of django 1.5. How would I force download version 1.4 through pip? Here is what I get when trying to install:

imac9:site-packages pdadmin$ sudo pip install django==1.4.1
Downloading/unpacking django==1.4.1
  Running setup.py egg_info for package django

    warning: no previously-included files matching '__pycache__' found under directory '*'
    warning: no previously-included files matching '*.py[co]' found under directory '*'
  Requested django==1.4.1, but installing version 1.5.1
Installing collected packages: django
    Found existing installation: Django 1.5.1
like image 723
David542 Avatar asked Apr 11 '13 19:04

David542


People also ask

How install Django step by step?

Django can be installed easily using pip . In the command prompt, execute the following command: pip install django . This will download and install Django. After the installation has completed, you can verify your Django installation by executing django-admin --version in the command prompt.

Does Python 3.7 support Django?

Python compatibilityDjango 3.0 supports Python 3.6, 3.7, 3.8, and 3.9 (as of 3.0. 11). We highly recommend and only officially support the latest release of each series.

How can I install the pip?

Step 1: Download the get-pip.py (https://bootstrap.pypa.io/get-pip.py) file and store it in the same directory as python is installed. Step 2: Change the current path of the directory in the command line to the path of the directory where the above file exists. Step 4: Now wait through the installation process. Voila!


1 Answers

This can be done by using this command

sudo pip install django==1.4 #or any desired version.

should work.

like image 53
deadPoet Avatar answered Sep 24 '22 20:09

deadPoet