How to install Ollama on Windows
Windows 10 or later, active internet connection, and at least 2 GB of free disk space. Administrator rights recommended.
What this does
This guide installs the Ollama runtime on a Windows host using the official installer or manual binary setup. After completion, the Ollama service runs as a background process and the CLI is accessible from Command Prompt or PowerShell.
Steps
Download the Windows installer from the Ollama website. The installer is an MSI package that configures the service and environment automatically.
Invoke-WebRequest -Uri https://ollama.com/install.ps1 -OutFile install.ps1Expected output: File download progress ending in a saved
install.ps1script.Execute the installation script with administrator privileges. Running as Administrator ensures the service registers correctly.
Start-Process powershell -ArgumentList "-ExecutionPolicy Bypass -File .\install.ps1" -Verb RunAs -WaitExpected output:
Ollama has been installed. Restart your terminal to use it.Open a new Command Prompt or PowerShell window. New sessions load the updated PATH. Verify the installation.
ollama listExpected output:
NAME ID SIZE MODIFIED(empty table is expected)
- Record the local run evidence. Save the exact command, runtime or package version, model name if applicable, and observed output so the result can be reproduced later.
Verification
ollama --version
# Expected: ollama version 0.4.x
Common failures
- Install script blocked by Execution Policy — The
-ExecutionPolicy Bypassflag in the command above bypasses this. Alternatively, runSet-ExecutionPolicy RemoteSigned -Scope CurrentUserfirst. - MSI installer hangs at "Configuring..." — Disk write issue or antivirus interference. Temporarily disable real-time antivirus scanning and retry.
- ollama not recognized after install — PATH not updated. Close and reopen all terminal windows, or manually add
C:\Users\<username>\AppData\Local\Programs\Ollamato the system PATH. - WSL2 networking conflict — WSL2 may cause port conflicts. Check with
netstat -ano | findstr 11434. - Insufficient disk space for models — Base install is ~200 MB; models range from 1 GB to tens of GB. Ensure adequate free space before pulling models.