hint
Install a Python package from Github
Rob Moorman
11 februari 2022
Often you find a bug in a Python package and want to use that fix (specific commit or branch) in your project dependencies.
With pip you have the ability to install Python packages from a GitHub (or any other Git) repository.
git+ssh://git@github.com/vicktornl/[repo].git@[commit]#egg=[package-name]
An example of above format would look like:
git+ssh://git@github.com/vicktornl/python-unsplash.git@23f5b87ffa4e7197b22b6410f94c6d804ec22a97#egg=python-unsplash
You can also change the commit hash to e.g. a branch name or tag.