goh goh - 8 months ago 107
Git Question

pip install from github repo branch

Seems to be rather straightforward but I just can't get it right. Trying to

install a repo's specific branch. Googling tells me to

pip install https://github.com/user/repo.git@branch

The branch's name is
so I did
pip install https://github.com/tangentlabs/django-oscar-paypal.git@/issue/34/oscar-0.6
but its returning a 404.

How do I install this branch?

Answer Source

Prepend the url prefix git+ (See VCS Support):

pip install git+https://github.com/tangentlabs/django-oscar-paypal.git@issue/34/oscar-0.6

And specify the branch name without the leading /.