installing python packages directly from github using pip

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

For example, you have this url: https://github.com/zkanda/lambda-uploader

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

Here’s how you can do it!

pip install git+https://github.com/zkanda/lambda-uploader

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+https://github.com/zkanda/lambda-uploader/@add-variables-as-shell-parameter

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.