32

I want to install Django 1.7 via pip. It is currently a development version, so not in pips repositories.

So I have installed packages from github before using:

pip install git+[url here]

Now looking at github, I get the clone url on the django page:

https://github.com/django/django.git

But this mentions nothing of the branch. How do I specify that I want version 1.7? Is it somewhere obvious on the github page?

wobbily_col
  • 11,390
  • 12
  • 62
  • 86

1 Answers1

60

Specify the branch, commit hash, or tag name after an @ at the end of the url:

pip install git+https://github.com/django/django.git@1.7b3

This will install the version tagged with 1.7b3.

Reference: https://pip.pypa.io/en/latest/cli/pip_install/

Community
  • 1
  • 1
ford
  • 10,687
  • 3
  • 47
  • 54