You need to download and install Python from here.
AFAIK, you almost never need to compile Python on Windows.
Programs installed on Windows are usually accessible in GitBash, so you just need to install Python first.
Then follow the installation instructions for pip.
Finally, open Git Bash and run pip install GitPython