pip install from git repo branch

You can use pip to install a package from a git repository and specify a branch by using the following syntax:

pip install git+https://github.com/user/repo.git@branch#egg=package-name

You'll need to replace "user", "repo", "branch" and "package-name" with the appropriate values for the git repository and package you want to install.

Watch a course Python - The Practical Guide

For example, if you want to install a package called "mypackage" from a repository called "myrepo" on a branch called "dev" from a user called "johndoe", you would use the following command:

pip install git+https://github.com/johndoe/myrepo.git@dev#egg=mypackage

You can also use git ssh link instead of git https link

pip install git+git://github.com/johndoe/myrepo.git@dev#egg=mypackage