How to add a private git repo to requirements.txt?

I need a private package from github in my requirements.txt to make my code work, but I get this error

ERROR: Command errored out with exit status 128:

My requirements.txt looks like this

sklearn
boto3
joblib
pandas
git+ssh://git@github.com:LexHoogeveen1989/Heartdisease-predictor.git#egg=heart-disease

How can I make this work? I am lost…

Did you end up figuring this out? I am exactly at this step and would like to use the git+ssh connector. Currently I am using a personal access token and that works but isn’t ideal…