Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install latest version of Django 1.5 using pip?

Tags:

python

pip

django

I want to install django1.5x. So I tried:

pip install django

but django1.6 gets installed.

I tried again by:

pip install django==1.5

but I got error:

Could not find any downloads that satisfy the requirement django==1.5
No distributions at all found for django==1.5
Storing complete log in /home/suhail/.pip/pip.log
like image 702
djangocapsone Avatar asked Nov 18 '13 05:11

djangocapsone


People also ask

How do I install the latest version of Django?

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.

How do I install pip latest version?

Updating Pip b is available.” You can run “pip install --upgrade pip” to install and use the new version of pip. To update pip2 or pip3 using this command, only replace the first pip with the pip version.

Does pip install the latest version of package?

txt file, pip looks for the latest version that satisfies the requirement and installs it. Next, you can upgrade the packages in your requirements file by running the install command with the --upgrade switch or the -U shorthand: Windows. Linux + macOS.

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.


3 Answers

pip install django=="1.5"

works for me

pip install django=="1.5"
Downloading/unpacking django==1.5
Downloading Django-1.5.tar.gz (8.0MB): 8.0MB downloaded
Running setup.py egg_info for package django

What version of Python are you using?

like image 94
Holy Mackerel Avatar answered Oct 06 '22 01:10

Holy Mackerel


Specify version as <1.6:

pip install "Django<1.6"

This installs Django 1.5.5 for now.

NOTE: Don't forget the quotes. otherwise < is interpreted as redirection.

like image 25
falsetru Avatar answered Oct 06 '22 00:10

falsetru


Did you try to give the exact version number?

pip install django==1.5.5
like image 40
luc Avatar answered Oct 05 '22 23:10

luc