Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
3 views
in DevOps and Agile by (29.3k points)

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

pip install git 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 it's returning an error 404.

How do I install this branch?

1 Answer

0 votes
by (50.2k points)

For installation you need to prepend the url prefix:

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

Note: specify the branch name without ’/’.

Reference: https://pip.pypa.io/en/stable/reference/pip_install/#vcs-support

Related questions

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...