This guide sets up a development environment on Windows Server 2016 (or similar Windows environments that do not support WSL). It includes:
- ✅ Git Bash shell (for bash scripting & Makefiles)
- ✅ Python 3 + pip3
- ✅ Terraform
- ✅ GNU Make
- ✅ pre-commit Git hooks
-
Download Git for Windows: 👉 https://gitforwindows.org 8696
-
Run the installer and accept the default settings. Make sure Git Bash is installed.
-
After installation, open Git Bash and verify:
git --version- Press
Win + Sand search for PowerShell - Right-click Windows PowerShell
- Choose Run as administrator
- Confirm the UAC prompt if it appears
In the admin PowerShell window, run:
Set-ExecutionPolicy Bypass -Scope Process -Force; `
[System.Net.ServicePointManager]::SecurityProtocol = `
[System.Net.ServicePointManager]::SecurityProtocol -bor 3072; `
iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))After installation, close and reopen PowerShell as administrator.
Verify installation:
choco --versionIn PowerShell (admin), run the following commands:
choco install python --pre -y
choco install make -y
choco install terraform -yThese commands will:
- Install Python 3 and pip
- Install GNU Make
- Install Terraform
Open Git Bash or PowerShell, then run:
pip install pre-commitRun these commands in Git Bash:
python --version
pip --version
make --version
terraform version
pre-commit --versionYou should see version numbers for all of them ✅
If your project includes a Makefile, run:
make installThis will:
- Check for required tools
- Install pre-commit Git hooks
- Prepare your dev environment
| Tool | Installed by | Example Location |
|---|---|---|
| Git Bash | Git for Windows | C:\Program Files\Git\bin\bash.exe |
| Python 3 | Chocolatey | C:\PythonXX\ or C:\Program Files\Python\ |
| pip3 | Comes with Python | |
| make | Chocolatey | C:\ProgramData\chocolatey\bin\make.exe |
| terraform | Chocolatey | C:\ProgramData\chocolatey\bin\terraform.exe |
| pre-commit | pip | Python’s Scripts\ directory |
If make doesn't work in Git Bash, add this to your Git Bash profile:
echo 'export PATH=$PATH:/c/ProgramData/chocolatey/bin' >> ~/.bashrc
source ~/.bashrcThen try:
make --versionLet us know if you need a .bat or .ps1 script to automate this setup!