Pre-receive hook python script error "pre-receive: failed with exit status 127\n/usr/bin/env: 'python': No such file or directory\n"

Hello Expert,
With reference of GitHub - joyjit/git-jira-hook: Scripts to make Jira (bug database) and git (source control) work together pre-receive hook python script, I have tried to setup global and repository level pre-receive hook. I am getting below error while pushing to branch:
“pre-receive: failed with exit status 127\n/usr/bin/env: ‘python’: No such file or directory\n”

However, when I ran /usr/bin/env python, /usr/bin/python - I am able to get python console.
Python 2.7 and 3.5 installed on github enterprise on-prem server.
Please help me to resolve this issue.

Thanks,
Ronak