Python / pip, how do I install a specific version of a git repository from github (what is the correct url)?


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:

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?


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

pip install git+[email protected]

This will install the version tagged with 1.7b3.


Answered By – ford

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published