in general the command is as follows but see this blog post for the most detailed explanation:
pip install git+https://github.com/user/repositor.git@branch#subdirectory=src
- note that the
@branch
is completely optional - also
#subdirectory=src
is also optional (sometimes the project to install is not in the root of the repo, e.g. Streamlit) - either options like
--ignore-requires-python
might be useful if you think the python version requirement is not neccessary