Recently, I needed to install a package directly from Github which I’m trying to contribute into.

For example, you have this url:

What you can do is just add git+ as a prefix in the URL.

Here’s how you can do it!

pip install git+

But I want to install a code in another branch, so how do we do it? We just add @branch_name at the end of the url.

pip install git+

Your package is now installed.

I’m surprised how easy it is to do it, should anyone need it, I hope this can help you.