ERROR: Cannot find command 'git' - do you have 'git' installed and in your PATH?

I have a python project and it has 1 dependency from github

the error is:
1.718 ERROR: Error [Errno 2] No such file or directory: ‘git’ while executing command git version
1.719 ERROR: Cannot find command ‘git’ - do you have ‘git’ installed and in your PATH?

How can I resolve this issue?

Ah I forgot I have a Dockerfile
Just install git and things works