Home >Backend Development >Python Tutorial >How to Correctly Install a Git Repo Branch Using pip?
Pip Installing from a Git Repo Branch
When attempting to install a specific branch of a repository using pip, you may encounter a 404 error if you do not specify the required format. To resolve this issue, follow these steps:
Prepend the URL prefix git :
pip install git+https://github.com/user/repo.git@branch
Specify the branch name without the leading "/":
pip install git+https://github.com/tangentlabs/django-oscar-paypal.git@issue/34/oscar-0.6
This will correctly install the desired branch of the repository.
The above is the detailed content of How to Correctly Install a Git Repo Branch Using pip?. For more information, please follow other related articles on the PHP Chinese website!