goh goh - 10 days ago 6
Git Question

pip install from github repo branch

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

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


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


The branch's name is
issue/34/oscar-0.6
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

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 /.